Part Number Hot Search : 
80025 AX593 SXQ50 2SB1568 20L45CT 1B23A10 MC14468 2SC47
Product Description
Full Text Search
 

To Download NU85ET Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  preliminary user?s manual NU85ET 32-bit microprocessor core hardware document no. a15015ej3v0um00 (3rd edition) date published march 2002 n cp(n) printed in japan ? 2000 NU85ET ndu85etv14
preliminary user?s manual a15015ej3v0um 2 [memo]
preliminary user?s manual a15015ej3v0um 3 notes for cmos devices 1 precaution against esd for semiconductors note: strong electric field, when exposed to a mos device, can cause destruction of the gate oxide and ultimately degrade the device operation. steps must be taken to stop generation of static electricity as much as possible, and quickly dissipate it once, when it has occurred. environmental control must be adequate. when it is dry, humidifier should be used. it is recommended to avoid using insulators that easily build static electricity. semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. all test and measurement tools including work bench and floor should be grounded. the operator should be grounded using wrist strap. semiconductor devices must not be touched with bare hands. similar precautions need to be taken for pw boards with semiconductor devices on it. 2 handling of unused input pins for cmos note: no connection for cmos device inputs can be cause of malfunction. if no connection is provided to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence causing malfunction. cmos devices behave differently than bipolar or nmos devices. input levels of cmos devices must be fixed high or low by using a pull-up or pull-down circuitry. each unused pin should be connected to v dd or gnd with a resistor, if it is considered to have a possibility of being an output pin. all handling related to the unused pins must be judged device by device and related specifications governing the devices. 3 status before initialization of mos devices note: power-on does not necessarily define initial status of mos device. production process of mos does not define the initial operation status of the device. immediately after the power source is turned on, the devices with reset function have not yet been initialized. hence, power-on does not guarantee out-pin levels, i/o settings or contents of registers. device is not initialized until the reset signal is received. reset operation must be executed immediately after power-on for devices having reset function.
preliminary user ? s manual a15015ej3v0um 4 the export of this product from japan is regulated by the japanese government. to export this product may be prohibited without governmental license, the need for which must be judged by the customer. the export or re-export of this product from a country other than japan may also be prohibited without a license from that country. please call an nec sales representative. ? the information contained in this document is being issued in advance of the production cycle for the device. the parameters for the device may change before final production or nec corporation, at its own discretion, may withdraw the device prior to its production. ? not all devices/types available in every country. please check with local nec representative for availability and additional information. ? no part of this document may be copied or reproduced in any form or by any means without the prior written consent of nec corporation. nec corporation assumes no responsibility for any errors which may appear in this document. ? nec corporation does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from use of a device described herein or any other liability arising from use of such device. no license, either express, implied or otherwise, is granted under any patents, c opyrights or other intellectual property rights of nec corporation or others. ? descriptions of circuits, software, and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. the incorporation of these circuits, software, and information in the design of the customer's equipment shall be done under the full responsibility of the customer. nec corporation assumes no responsibility for any losses incurred by the customer or third parties arising from the use of these circuits, software, and information. ? while nec corporation has been making continuous effort to enhance the reliability of its semiconductor devices, the possibility of defects cannot be eliminated entirely. to minimize risks of damage or injury to persons or property arising from a defect in an nec semiconductor device, customers must incorporate sufficient safety measures in its design, such as redundancy, fire-containment, and anti-failure features. ? nec devices are classified into the following three quality grades: "standard", "special", and "specific". the specific quality grade applies only to devices developed based on a customer designated "quality assurance program" for a specific application. the recommended applications of a device depend on its quality grade, as indicated below. customers must check the quality grade of each device before using it in a particular application. standard: computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots special: transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) specific: aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems or medical equipment for life support, etc. the quality grade of nec devices is "standard" unless otherwise specified in nec's data sheets or data books. if customers intend to use nec devices for applications other than those specified for standard quality grade, they should contact an nec sales representative in advance. m5d 98. 12
preliminary user ? s manual a15015ej3v0um 5 regional information some information contained in this document may vary from country to country. before using any nec product in your application, piease contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: ? device availability ? ordering information ? product release schedule ? availability of related technical literature ? development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) ? network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. nec electronics inc. (u.s.) santa clara, california tel: 408-588-6000 800-366-9782 fax: 408-588-6130 800-729-9288 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics singapore pte. ltd. novena square, singapore tel: 253-8311 fax: 250-3583 nec electronics taiwan ltd. taipei, taiwan tel: 02-2719-2377 fax: 02-2719-5951 nec do brasil s.a. electron devices division guarulhos-sp, brasil tel: 11-6462-6810 fax: 11-6462-6829 j01.12 nec electronics (europe) gmbh duesseldorf, germany tel: 0211-65 03 01 fax: 0211-65 03 327 ? branch the netherlands eindhoven, the netherlands tel: 040-244 58 45 fax: 040-244 45 80 ? branch sweden taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388 nec electronics (uk) ltd. milton keynes, uk tel: 01908-691-133 fax: 01908-670-290 nec electronics italiana s.r.l. milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99 nec electronics (france) s.a. v lizy-villacoublay, france tel: 01-3067-58-00 fax: 01-3067-58-99 nec electronics (france) s.a. representaci n en espa ? a madrid, spain tel: 091-504-27-87 fax: 091-504-28-60
preliminary user?s manual a15015ej3v0um 6 major revisions in this edition pages description p.25 addition of notes in 2.1 list of pin functions p.28 change of idbr2 to idbr0 and exhlt to nec reserved pins in 2.1 list of pin functions p.31 addition of description in 2.2.2 (3) vapreq p.34 addition of description in 2.2.2 (17) vmlast, vslast p.34 addition of description in 2.2.2 (18) vmahld, vsahld p.35 addition of description in 2.2.2 (20) vbdc p.35 addition of description in 2.2.2 (21) vbdv pp.35, 36 addition of description in 2.2.3 (1) resetz addition of figure 2-2 p.45 change of idbr2 to idbr0 and exhlt to nec reserved pins in 2.2.11 (14) pp.51, 52 addition of notes in 2.3 recommended connection of unused pins p.141 addition of 5.5 precautions pp.144, 145 addition of remarks 4 and 5 in 6.2.1 power save control register (psc) p.148 addition of remark in table 6-3 operation after setting software stop mode in interrupt servicing routine p.151 addition of <4> and remark in 6.6 (1) (b) when canceling software stop mode p.153 addition of remark in 6.6 (2) (b) when canceling hardware stop mode p.163 addition of caution in figure 7-6 dma addressing control registers 0 to 3 (dadc0 to dadc3) p.165 addition of caution and descriptions in figure 7-7 dma channel control registers 0 to 3 (dchc0 to dchc3) pp.177, 178 addition of descriptions in 7.8.5 one-time transfer when executing single transfers using dmarqn signal p.178 addition of figure 7-24 example of two-cycle transfer p.179 addition of descriptions in 7.9.2 flyby transfer p.179 addition of figure 7-25 example of flyby transfer (memory to i/o) p.181 addition of figure 7-27 example of terminal count signal output (dmtco3 to dmtco0) p.184 modification of remark in figure 7-29 dma transfer forcible termination example p.209 modification and addition of descriptions in 7.15 (3) intervals related to dma transfer p.210 addition of descriptions in 7.15 (4) cpu access during dma transfer p.210 addition of 7.15 (6) dmarqn signal retention and (7) vmlock signal p.214 modification of caution 1 and addition of caution 2 in 8.2 non-maskable interrupts (nmi) p.237 modification of figure 9-1 peripheral macro connection example p.238 deletion of when npb peripheral is connected and modification in 9.4 (2) test mode pins p.252 addition of appendix c revision history the mark shows major revised points.
preliminary user?s manual a15015ej3v0um 7 preface target readers this manual is intended for users who wish to understand the hardware functions of the NU85ET and ndu85etv14, which are the cpu cores of a cell-based ic (cbic), to design application systems using the NU85ET or ndu85etv14. purpose this manual is designed to help users understand the hardware functions of the NU85ET and ndu85etv14 outlined in organization below. organization this manual describes the hardware functions of the NU85ET and ndu85etv14. for details about the architecture and instruction functions, refer to the ?v850e1 user?s manual architecture (u14559e).? the organization of each manual is as follows: NU85ET user?s manual v850e1 user?s manual hardware (this manual) architecture (u14559e) ? overview ? register set ? cpu function ? instruction format and instruction set ? peripheral i/o functions ? interrupts and exceptions ? test functions ? pipeline operation how to read this manual it is assumed that the readers of this manual have general knowledge of electricity, logic circuits, and microcontrollers. to gain a general understanding of the hardware functions of the NU85ET and ndu85etv14 read this manual according to the contents . to confirm details of a function, etc. when the name is known refer to appendix b index . to learn about the details of an instruction function refer to the v850e1 architecture user?s manual (u14559e) . this document describes the NU85ET as the representative product. when using the ndu85etv14, read NU85ET as ndu85etv14.
preliminary user?s manual a15015ej3v0um 8 conventions data significance: higher digits on the left and lower digits on the right active low representation: xxxz (z after pin or signal name) note: footnote for item marked with note in the text caution: information requiring particular attention remark: supplementary information numerical representation: binary ? xxxx or xxxxb decimal ? xxxx hexadecimal ? xxxxh prefix indicating the power of 2 (address space, memory capacity): k (kilo) ? 2 10 = 1,024 m (mega) ? 2 20 = 1,024 2 g (giga) ? 2 30 = 1,024 3 data type: word ? 32 bits halfword ? 16 bits byte ? 8 bits this document describes the NU85ET as the representative product. when using the ndu85etv14, read NU85ET as ndu85etv14. related documents the related documents indicated in this publication may include preliminary versions. however, preliminary versions are not marked as such. ? v850e1 architecture user?s manual (u14559e) ? memory controller nu85e, NU85ET user?s manual (a15019e) ? instruction cache, data cache nu85e, NU85ET user?s manual (a15241e) ? cb-10 family vx type nu85e, NU85ET design manual (a15401e) ? cb-10 family vx type core library cpu core, peripheral design manual (a15133e) ? cb-12 family l type core library cpu core, peripheral design manual (a15752e) the related documents listed above are subject to change without notice. be sure to use the latest version of each document for designing.
preliminary user?s manual a15015ej3v0um 9 contents chapter 1 introduction........................................................................................................ ............17 1.1 outline..................................................................................................................... .....................17 1.2 application system example.................................................................................................. ...18 1.3 features .................................................................................................................... ...................19 1.4 symbol diagram.............................................................................................................. ............21 1.5 function blocks ............................................................................................................. .............22 1.5.1 internal block diagram .................................................................................................... .................22 1.5.2 internal units............................................................................................................ ........................23 1.6 functional differences between NU85ET and nb85et ..........................................................24 chapter 2 pin functions ....................................................................................................... ............25 2.1 list of pin functions ....................................................................................................... ...........25 2.2 explanation of pin functions ................................................................................................ ....30 2.2.1 npb pins .................................................................................................................. .......................30 2.2.2 vsb pins.................................................................................................................. ........................31 2.2.3 system control pins ....................................................................................................... ..................35 2.2.4 dmac pins ................................................................................................................. .....................37 2.2.5 intc pins ................................................................................................................. .......................37 2.2.6 vfb pins.................................................................................................................. ........................37 2.2.7 vdb pins .................................................................................................................. .......................38 2.2.8 instruction cache pins .................................................................................................... .................39 2.2.9 data cache pins........................................................................................................... ....................40 2.2.10 external intc pins ....................................................................................................... ...................42 2.2.11 dcu pins ................................................................................................................. ........................45 2.2.12 peripheral eva chip mode pins............................................................................................ ...........46 2.2.13 operation mode setting pins .............................................................................................. .............47 2.2.14 test mode pins........................................................................................................... .....................49 2.3 recommended connection of unused pins ............................................................................51 2.4 pin status .................................................................................................................. ..................53 chapter 3 cpu................................................................................................................. .......................57 3.1 features .................................................................................................................... ...................57 3.2 registers................................................................................................................... ...................58 3.2.1 program registers......................................................................................................... ...................59 3.2.2 system registers.......................................................................................................... ....................61 3.3 address space ............................................................................................................... .............64 3.3.1 program area .............................................................................................................. ....................65 3.3.2 data area................................................................................................................. ........................66 3.4 areas ....................................................................................................................... .....................68 3.4.1 rom area.................................................................................................................. ......................68 3.4.2 ram area .................................................................................................................. ......................71 3.4.3 peripheral i/o area ....................................................................................................... ...................72 3.4.4 external memory area ...................................................................................................... ...............73 3.5 peripheral i/o registers .................................................................................................... .........74
preliminary user?s manual a15015ej3v0um 10 3.5.1 NU85ET control registers .................................................................................................. ..............75 3.5.2 memory controller (memc) control registers ................................................................................ ...78 3.5.3 instruction cache control registers....................................................................................... ............79 3.5.4 data cache control registers.............................................................................................. ..............79 chapter 4 bcu................................................................................................................. .......................80 4.1 features .................................................................................................................... ...................80 4.2 memory banks................................................................................................................ .............80 4.3 programmable chip select function ........................................................................................83 4.4 programmable peripheral i/o area selection function ..........................................................89 4.5 bus size setting function................................................................................................... .......92 4.6 endian setting function..................................................................................................... ........93 4.6.1 endian configuration register (bec) ....................................................................................... .........93 4.6.2 usage restrictions concerning big endian format with nec development tools ..............................94 4.7 cache configuration......................................................................................................... ..........96 4.8 bcu-related register setting examples..................................................................................97 4.9 data transfer using vsb..................................................................................................... .....100 4.9.1 data transfer example ..................................................................................................... ..............100 4.9.2 control signals output by bus master ...................................................................................... ......101 4.9.3 read/write timing......................................................................................................... ..................104 4.9.4 vsb read/write timing example............................................................................................. .........117 4.9.5 reset timing.............................................................................................................. .....................119 4.9.6 bus master transition timing .............................................................................................. ............120 4.9.7 misalign access timing.................................................................................................... ...............122 chapter 5 bbr................................................................................................................. .....................124 5.1 programmable peripheral i/o area..........................................................................................12 6 5.2 wait insertion function ..................................................................................................... .......129 5.3 retry function.............................................................................................................. .............131 5.4 npb read/write timing ....................................................................................................... .....132 5.5 precautions................................................................................................................. ...............141 chapter 6 stbc................................................................................................................ ....................142 6.1 power save function......................................................................................................... .......142 6.2 control registers ........................................................................................................... ...........143 6.2.1 power save control register (psc) ......................................................................................... .......143 6.2.2 command register (prcmd).................................................................................................. .......145 6.3 halt mode ................................................................................................................... .............146 6.4 software stop mode.......................................................................................................... ......147 6.5 hardware stop mode.......................................................................................................... .....149 6.6 clock control in software/hardware stop mode .................................................................150 chapter 7 dmac................................................................................................................ ...................155 7.1 features .................................................................................................................... .................155 7.2 configuration............................................................................................................... ..............156 7.3 transfer objects............................................................................................................ ............157 7.4 dma channel priorities ...................................................................................................... ......157 7.5 control registers ........................................................................................................... ...........158
preliminary user?s manual a15015ej3v0um 11 7.5.1 dma source address registers 0 to 3 (dsa0 to dsa3) .................................................................158 7.5.2 dma destination address registers 0 to 3 (dda0 to dda3) ..........................................................160 7.5.3 dma transfer count registers 0 to 3 (dbc0 to dbc3) ...................................................................162 7.5.4 dma addressing control registers 0 to 3 (dadc0 to dadc3).......................................................163 7.5.5 dma channel control registers 0 to 3 (dchc0 to dchc3) ...........................................................165 7.5.6 dma disable status register (ddis) ........................................................................................ ......166 7.5.7 dma restart register (drst) ............................................................................................... ..........166 7.6 next address setting function ............................................................................................... 167 7.7 dma bus state ............................................................................................................... ...........168 7.7.1 bus state types........................................................................................................... ...................168 7.7.2 dmac bus cycle state transitions.......................................................................................... ........170 7.8 transfer modes .............................................................................................................. ...........171 7.8.1 single transfer mode ...................................................................................................... ...............171 7.8.2 single-step transfer mode ................................................................................................. ............173 7.8.3 line transfer mode ........................................................................................................ ................174 7.8.4 block transfer mode ....................................................................................................... ...............176 7.8.5 one-time transfer when executing single transfers using dmarqn signal...................................177 7.9 transfer types .............................................................................................................. ............178 7.9.1 two-cycle transfer ........................................................................................................ .................178 7.9.2 flyby transfer............................................................................................................ .....................179 7.10 dma transfer start factors ................................................................................................. ....180 7.11 terminal count output when dma transfer is complete....................................................181 7.12 forcible interruption...................................................................................................... ...........182 7.13 forcible termination ....................................................................................................... .........183 7.14 dma transfer timing examples..............................................................................................1 85 7.15 precautions ................................................................................................................ ...............209 chapter 8 intc................................................................................................................ .....................211 8.1 features .................................................................................................................... .................211 8.2 non-maskable interrupts (nmi)............................................................................................... .214 8.2.1 operation................................................................................................................. ......................217 8.2.2 restore................................................................................................................... .......................218 8.3 maskable interrupts ......................................................................................................... .........219 8.3.1 operation................................................................................................................. ......................219 8.3.2 restore................................................................................................................... .......................221 8.3.3 maskable interrupt priorities ............................................................................................. .............222 8.3.4 control registers ......................................................................................................... ...................226 8.3.5 maskable interrupt status flag (id) ....................................................................................... .........229 8.4 software exceptions......................................................................................................... ........230 8.4.1 operation................................................................................................................. ......................230 8.4.2 restore................................................................................................................... .......................231 8.5 exception trap .............................................................................................................. ............232 8.5.1 illegal opcode ............................................................................................................ ....................232 8.5.2 operation................................................................................................................. ......................233 8.5.3 restore................................................................................................................... .......................233 8.6 interrupt response time..................................................................................................... .....234 8.7 periods when interrupts cannot be acknowledged.............................................................234
preliminary user?s manual a15015ej3v0um 12 chapter 9 test function....................................................................................................... ..........235 9.1 test pins ................................................................................................................... .................235 9.1.1 test bus pins (tbi39 to tbi0 and tbo34 to tbo0) ......................................................................235 9.1.2 bunri and test pins....................................................................................................... ............235 9.1.3 bunriout pin .............................................................................................................. ................236 9.2 list of test interface signals .............................................................................................. .....236 9.3 example of connection of peripheral macro in test mode ..................................................237 9.4 handling of each pin in test mode .........................................................................................23 8 chapter 10 dcu................................................................................................................ ....................239 10.1 outline of functions ....................................................................................................... ..........239 10.1.1 debug functions.......................................................................................................... ...................239 10.1.2 trace functions .......................................................................................................... ....................240 10.1.3 event functions .......................................................................................................... ....................241 10.2 connection with n-wire type ie (ie-70000-mc-nw-a)..........................................................242 10.2.1 ie connector (target system side)........................................................................................ ..........242 10.2.2 example of recommended circuit when connecting NU85ET........................................................244 10.2.3 precautions when using n-wire type ie .................................................................................... ....244 appendix a rom/ram access timing.............................................................................................2 45 appendix b index .............................................................................................................. ...................247 appendix c revision history................................................................................................... .......252
preliminary user?s manual a15015ej3v0um 13 list of figures (1/3) figure no. title page 2-1 acknowledgement of resetz signal ............................................................................................ .......... 35 2-2 stopping vbclk oscillation by system reset .................................................................................. ....... 36 3-1 list of cpu registers ....................................................................................................... ........................ 58 3-2 program counter (pc) ........................................................................................................ ...................... 60 3-3 interrupt source register (ecr)............................................................................................. .................. 62 3-4 program status word (psw)................................................................................................... ................. 63 3-5 address space ............................................................................................................... .......................... 64 3-6 program area ................................................................................................................ ........................... 65 3-7 data area (64 mb mode) ...................................................................................................... .................... 66 3-8 data area (256 mb mode) ..................................................................................................... ................... 67 3-9 rom area.................................................................................................................... ............................. 68 3-10 ram area ................................................................................................................... .............................. 71 3-11 peripheral i/o area ........................................................................................................ ........................... 73 4-1 chip area select control register 0 (csc0) .................................................................................. .......... 83 4-2 chip area select control register 1 (csc1) .................................................................................. .......... 84 4-3 csc0 and csc1 register setting example (64 mb mode) ..................................................................... 85 4-4 csc0 and csc1 register setting example (256 mb mode) ................................................................... 88 4-5 peripheral i/o area and programmable peripheral i/o area.................................................................... 90 4-6 peripheral i/o area select control register (bpc) ........................................................................... ....... 91 4-7 bus size configuration register (bsc) ....................................................................................... ............. 92 4-8 endian configuration register (bec) ......................................................................................... .............. 93 4-9 word data little endian format example ...................................................................................... .......... 94 4-10 word data big endian format example ........................................................................................ ........... 94 4-11 cache configuration register (bhc)......................................................................................... ............... 96 4-12 bpc, bsc, bec, bhc register setting example................................................................................ ..... 97 4-13 example of data transfer using vsb ......................................................................................... ........... 100 4-14 read/write timing of bus slave connected to vsb ............................................................................ .. 105 4-15 vsb timing example......................................................................................................... ..................... 117 4-16 reset timing............................................................................................................... ............................ 119 4-17 bus master transition timing ............................................................................................... .................. 121 4-18 misalign access timing ..................................................................................................... ..................... 122 5-1 npb connection overview ..................................................................................................... ................ 124 5-2 NU85ET and peripheral macro connection example............................................................................. 1 25 5-3 peripheral i/o area and programmable peripheral i/o area.................................................................. 12 6 5-4 peripheral i/o area select control register (bpc) ........................................................................... ..... 127 5-5 bpc register setting example................................................................................................ ............... 128 5-6 npb strobe wait control register (vswc)..................................................................................... ....... 129 5-7 retry function .............................................................................................................. .......................... 131 5-8 halfword access timing ...................................................................................................... ................... 132 5-9 timing of byte access to odd address ........................................................................................ .......... 133 5-10 timing of byte access to even address...................................................................................... ........... 133 5-11 read modify write timing ................................................................................................... ................... 134
preliminary user?s manual a15015ej3v0um 14 list of figures (2/3) figure no. title page 5-12 retry timing (write)....................................................................................................... .........................134 5-13 retry timing (read)........................................................................................................ ........................135 5-14 read/write timing of bus slave connected to npb ............................................................................ ..136 5-15 npb write timing (example of timing of data write to csc0 and csc1 registers) ............................140 6-1 power save function state transition diagram ................................................................................ .....142 6-2 power save control register (psc) ........................................................................................... ............143 6-3 command register (prcmd).................................................................................................... .............145 6-4 connection of NU85ET and clock controller ................................................................................... ......150 6-5 software stop mode set/cancel timing example................................................................................ 152 6-6 hardware stop mode set/cancel timing example ..............................................................................15 4 7-1 dma source address registers 0h to 3h (dsa0h to dsa3h) ..............................................................158 7-2 dma source address registers 0l to 3l (dsa0l to dsa3l) ................................................................159 7-3 dma destination address registers 0h to 3h (dda0h to dda3h) .......................................................160 7-4 dma destination address registers 0l to 3l (dda0l to dda3l) .........................................................161 7-5 dma transfer count registers 0 to 3 (dbc0 to dbc3) .........................................................................1 62 7-6 dma addressing control registers 0 to 3 (dadc0 to dadc3)..............................................................163 7-7 dma channel control registers 0 to 3 (dchc0 to dchc3) ..................................................................165 7-8 dma disable status register (ddis).......................................................................................... ............166 7-9 dma restart register (drst) ................................................................................................. ...............166 7-10 buffer register configuration.............................................................................................. ....................167 7-11 dmac bus cycle state transition diagram.................................................................................... ........170 7-12 single transfer example 1.................................................................................................. ....................171 7-13 single transfer example 2.................................................................................................. ....................171 7-14 single transfer example 3.................................................................................................. ....................172 7-15 single transfer example 4.................................................................................................. ....................172 7-16 single-step transfer example 1 ............................................................................................. ................173 7-17 single-step transfer example 2 ............................................................................................. ................173 7-18 line transfer example 1.................................................................................................... .....................174 7-19 line transfer example 2.................................................................................................... .....................174 7-20 line transfer example 3.................................................................................................... .....................175 7-21 line transfer example 4.................................................................................................... .....................175 7-22 block transfer example..................................................................................................... .....................176 7-23 one-time transfer when executing single transfers using dmarqn signal......................................177 7-24 example of two-cycle transfer.............................................................................................. ................178 7-25 example of flyby transfer (memory to i/o) .................................................................................. ..........179 7-26 timing example of terminal count signals (dmtco3 to dmtco0) .....................................................181 7-27 example of terminal count signal output (dmtco3 to dmtco0) .......................................................181 7-28 dma transfer forcible interruption example................................................................................. .........182 7-29 dma transfer forcible termination example .................................................................................. .......183 7-30 example of two-cycle single transfer timing (between external srams connected to nt85e500)..186 7-31 example of two-cycle single-step transfer timing (between external srams connected to nt85e500)............................................................................188 7-32 example of two-cycle line transfer timing (between external srams connected to nt85e500) .....190
preliminary user?s manual a15015ej3v0um 15 list of figures (3/3) figure no. title page 7-33 example of two-cycle block transfer timing (between external srams connected to nt85e500)... 192 7-34 example of two-cycle single transfer timing (from ram connected to vdb to sdram connected to nt85e502) .................................................... 194 7-35 example of two-cycle single transfer timing (from sdram connected to nt85e502 to ram connected to vdb) .................................................... 196 7-36 example of flyby single transfer timing (from external sram to external i/o connected to nt85e500) ............................................................ 198 7-37 example of flyby single-step transfer timing (from external sram to external i/o connected to nt85e500) ............................................................ 200 7-38 example of flyby single-step transfer timing (from external i/o to external sram connected to nt85e500) ............................................................ 202 7-39 example of flyby line transfer timing (from external sram to external i/o connected to nt85e500) ............................................................ 204 7-40 example of flyby block transfer timing (from external sram to external i/o connected to nt85e500) ............................................................ 206 7-41 example of flyby block transfer timing (from external i/o to external sram connected to nt85e500) ............................................................ 208 8-1 example of non-maskable interrupt request acknowledgement operation.......................................... 215 8-2 non-maskable interrupt processing format .................................................................................... ....... 217 8-3 reti instruction processing format.......................................................................................... ............. 218 8-4 maskable interrupt processing format........................................................................................ ........... 220 8-5 reti instruction processing format.......................................................................................... ............. 221 8-6 servicing example in which another interrupt request is issued during interrupt servicing .................... 223 8-7 servicing example for simultaneously issued interrupt requests ......................................................... 225 8-8 interrupt control registers 0 to 63 (pic0 to pic63) ......................................................................... ...... 226 8-9 interrupt mask registers 0 to 3 (imr0 to imr3) .............................................................................. ....... 227 8-10 in-service priority register (ispr) ........................................................................................ ................. 228 8-11 program status word (psw).................................................................................................. ................ 229 8-12 software exception processing format....................................................................................... ........... 230 8-13 reti instruction processing format......................................................................................... .............. 231 8-14 illegal opcode............................................................................................................. ............................ 232 8-15 exception trap processing format ........................................................................................... ............. 233 8-16 example of pipeline operation when interrupt request is acknowledged (outline) ............................. 234 9-1 peripheral macro connection example ......................................................................................... ......... 237 10-1 n-wire type ie connection .................................................................................................. .................. 242 10-2 ie connector pin layout diagram (target system side) ....................................................................... 242 10-3 example of recommended circuit for ie connection (NU85ET) ........................................................... 244 a-1 rom access timing ........................................................................................................... .................... 245 a-2 ram access timing ........................................................................................................... .................... 246
preliminary user?s manual a15015ej3v0um 16 list of tables table no. title page 2-1 vmttyp1 and vmttyp0 signals ................................................................................................. ...........31 2-2 vmbenz3 to vmbenz0 and vsbenz1 signals ...................................................................................... 32 2-3 vmsize1 and vmsize0 signals................................................................................................. ..............32 2-4 vmctyp2 to vmctyp0 signals .................................................................................................. ............33 2-5 vmseq2 to vmseq0 signals .................................................................................................... ..............33 2-6 iramwr3 to iramwr0 signals .................................................................................................. ............38 2-7 iddrrq, iddwrq, idseq4, and idseq2 signals .................................................................................4 0 2-8 eintlv6 to eintlv0 signals .................................................................................................. .................42 2-9 list of interrupts from external intc ....................................................................................... .................43 2-10 ifira64, ifira32, and ifira16 signals...................................................................................... .............47 2-11 ifinsz1 and ifinsz0 signals ................................................................................................ ..................48 2-12 pin status in each operating mode.......................................................................................... ................53 3-1 list of program registers ................................................................................................... ......................59 3-2 list of system registers .................................................................................................... .......................61 3-3 interrupt/exception table................................................................................................... .......................69 3-4 ram area size settings ...................................................................................................... .....................71 4-1 vmttyp1 and vmttyp0 signals ................................................................................................. .........101 4-2 vmctyp2 to vmctyp0 signals .................................................................................................. ..........101 4-3 vmbenz3 to vmbenz0 signals .................................................................................................. ..........102 4-4 vmsize1 and vmsize0 signals................................................................................................. ............102 4-5 vmseq2 to vmseq0 signals .................................................................................................... ............102 4-6 vmwait, vmahld, and vmlast signals.......................................................................................... ...103 4-7 vbdc and vbdv signals....................................................................................................... .................103 5-1 setting of setup wait, vpstb wait lengths at each operation frequency...........................................130 6-1 operation after halt mode is canceled by interrupt request ..............................................................146 6-2 operation after software stop mode is canceled by interrupt request ..............................................147 6-3 operation after setting software stop mode in interrupt servicing routine ........................................148 6-4 status after cancellation of hardware stop mode ............................................................................. ..149 7-1 relationships between transfer type and transfer object ...................................................................15 7 7-2 relationships between wait function and transfer object....................................................................1 57 8-1 interrupt/exception list .................................................................................................... .......................211 9-1 list of test mode settings .................................................................................................. ....................235 10-1 ie connector pin functions (target system side) ............................................................................ .....243
preliminary user?s manual a15015ej3v0um 17 chapter 1 introduction the nu85e family consists of an on-chip 32-/16-bit risc type, the v850e1 cpu, and peripheral i/os, and is a group of cpu cores designed for embedding in asics. the v850e1 can execute almost all instructions in 1 clock through 5-stage pipeline control based on the risc architecture. furthermore, the nu85e family also includes 2 types of external bus interfaces for connection to high- and low-speed peripheral i/os, as well as functions to interface with rom, ram, an instruction cache, and a data cache. this product, the ?NU85ET?, is a cpu core that has peripheral i/o functions such as a dma controller and an interrupt controller, as well as interface functions with an external interrupt controller and debug controller through which on-chip debugging can be realized using the NU85ET unit. 1.1 outline (1) v850e1 cpu the NU85ET is equipped with the v850e1, which is a risc-type cpu that utilizes a five-stage pipeline technique. two-byte basic instructions and instructions for high-level language support increase the efficiency of object code generated by the c compiler and reduce the program size. in addition, to increase the speed of multiplication processing, the NU85ET contains an on-chip high-speed hardware multiplier capable of executing 32-bit 32-bit operations. (2) bus interfaces the NU85ET provides the following two types of bus interfaces for connection with peripheral macros or user logic. ? v850e system bus (vsb) ? nec peripheral i/o bus (npb) the vsb, which is synchronized with the system clock, is the bus to be used for connection with high-speed peripheral macros such as a memory controller (memc) or macros operating as the bus master (dmac, dsp, etc.). the npb, which operates asynchronously to the system clock, is to be used for connection with relatively low- speed peripheral macros such as a timer or asynchronous serial interface (uart). a v850e fetch bus (vfb), which can be directly coupled with rom, and a v850e data bus (vdb), which can be directly coupled with ram, are also provided. in addition, since the NU85ET contains on-chip dedicated interfaces for the instruction cache, data cache, and external interrupt controller, each macro can be directly coupled. (3) on-chip peripheral i/o the NU85ET contains an on-chip dma control unit (dmac) for controlling dma transfers, an on-chip interrupt control unit (intc) for controlling interrupt requests, and an on-chip standby control unit (stbc) for controlling the power save function. (4) debug control function the NU85ET contains an on-chip debug control unit (dcu), that is comprised of three function units: a run control unit (rcu) for realizing communication using jtag note and debug processing, a trace control unit (trcu) for realizing trace functions, and a trigger event unit (teu) for realizing event detection functions.
chapter 1 introduction preliminary user?s manual a15015ej3v0um 18 note although the specifications of jtag serial communication are utilized, the boundary scan function is not supported. 1.2 application system example cpu npb (nec peripheral i/o bus) vsb (v850e system bus) standby control unit (stbc) dma control unit (dmac) test interface control unit (tic) interrupt control unit (intc) bus bridge (bbr) bus control unit (bcu) instruction cache interface data cache interface NU85ET timer user logic uart memory controller (memc) test bus clock control circuit clock generator (cg) instruction cache rom ram data cache asic external memory vdb vfb external intc interface debug control unit (dcu) interrupt controller (intc) remark vfb: dedicated bus for rom direct coupling (v850e fetch bus) vdb: dedicated bus for ram direct coupling (v850e data bus) caution in this manual, representations related to the memory connected to the NU85ET are unified as follows. ? ? ? ? ram: NU85ET direct-coupled ram (connected to the vdb) ? ? ? ? rom: NU85ET direct-coupled rom (connected to the vfb) ? ? ? ? external memory: ram or rom connected via the memory controller (memc) (connected via the vsb)
chapter 1 introduction preliminary user?s manual a15015ej3v0um 19 1.3 features ? number of instructions 83 ? general-purpose registers 32 bits 32 registers ? instruction set upwardly compatible with v850 cpu signed multiplication (32 bits 32 bits 64 bits) saturated calculation instructions (with overflow/underflow detection function) 32-bit shift instructions: 1 clock bit manipulation instructions load/store instructions with long/short format signed load instructions ? memory space program area: 64 mb linear address space data area: 4 gb linear address space memory bank division function: 2, 4, or 8 mb/bank ? external bus interface vsb (v850e system bus) - address/data separated bus (28-bit address note /32-bit data bus) - data i/o separated bus - 32-/16-/8-bit bus sizing function - bus hold function - external wait function - endian switching function npb (nec peripheral i/o bus) - address/data separated bus (14-bit address/16-bit data bus) - data i/o separated bus - programmable wait function - retry function note 14-bit address bus when functioning as bus slave ? interrupt/exception control functions non-maskable interrupts: 3 sources maskable interrupts note ? when internal intc is used: 64 sources ? when external intc is used: 117 sources (max.) exceptions: 1 source eight levels of priorities can be set (maskable interrupts) note when the number of maskable interrupt sources required for the system exceeds 64, connect the interrupt controller (intc) externally (a maximum of 117 sources of maskable interrupts can be supported).
chapter 1 introduction preliminary user?s manual a15015ej3v0um 20 ? dma control function 4-channel configuration transfer units: 8-bit, 16-bit, or 32-bit maximum transfer count: 65,536 (2 16 ) transfer types: flyby (1-cycle) transfer or 2-cycle transfer transfer modes: single transfer, single-step transfer, line transfer, or block transfer terminal count output signals (dmtco3 to dmtco0) ? power save function halt mode software stop mode hardware stop mode ? debug control function cpu break trace (pc trace (branch trace), data access trace) event detection (execution address, access address trace), access data, range (size comparison), four-stage sequential execution)
chapter 1 introduction preliminary user?s manual a15015ej3v0um 21 1.4 symbol diagram evirel in vaack vareq idmastp in dmarq (3:0) in dmtco (3:0) out dmactv (3:0) out i bdrrq ibea (25:2) ibaack i bdrdy ibdle (3:0) ibedi (31:0) ibbtft iidrrq iiea (25:2) iiaack iidlef iiedi (31:0) iibtft iircan bcunch vptclk out phtest out tesen out tbo (34:0) out cgrel swstoprq hwstoprq stopz stprq tbredz out out vpa (13:0) in vpdi (15:0) out vpwrite out vpstb out out in in vplock vpubenz vpretr vpdact vdselpz vdcsz (7:0) vmseq (2:0) vmctyp (2:0) vmsize (1:0) vmbenz (3:0) vmttyp (1:0) vbdi (31:0) in out out out out out out out out out out in in in out out vma (27:0) vmstz vmwrite vmlock vmbstr vmwait vmlast vmahld resetz vbclk test in bunri in out phtdin (1:0) in phtdo (1:0) iroma (19:2) out iromz (31:0) in iromen out iromcs out iromia out iromae out iromwt in irama (27:2) out iramz (31:0) in iramen out iramwr (3:0) out iramrwb out iraoz (31:0) out iramwt in out tmode (1:0) tbi (39:0) in int (63:0) nmi (2:0) in in vpresz out iddarq iddrrq iddwrq idaack idseq2 idseq4 irrsa idretr ides iddrdy idrrdy idhum idea (27:0) ided (31:0) idunch out in in out in in out out out out out in in in in/out evastb evdstb evad (15:0) evlkrt evclrip evintak evintrq evintlv (6:0) evien evoen in in in/out out out in/out in in out out ifinsz (1:0) ifirome ifirob2 ifirobe ifiropr ifimode2 ifira16 ifira32 ifira64 ifirase ifirabe ifiuswe ifimaen ifid256 ifiunch (1:0) fcomb pheva ifiwrth ifimode3 in in in in in in in in in in in in in in in in in in in out out out out in in in in in in out out out out out out in in in out out out in stpak ddo out trcclk out trcdata (3:0) out trcend out evttrg out ddoout out dcwait out dcresz out exhlt out ddoenb out dbresz out resmk out mskstp out msknmi (2:0) out mskhrq dbrdy tapsm (3:0) out idbr (2:0) out dck in dms in ddi in dbint in romtype in mwait in trg (1 :0) out drstz in clkb1 eintak eclrip ifieva eintrq eintlv (6:0) in out out in in in in out vbdo (31:0) out vsbenz1 in in in in in out out out out vsa (13:0) vsstz vswrite vslock vswait vslast vsahld vbdc out vbdv out vpdo (15:0) vsselpz in out vapreq out out out vpdv bunri out out
chapter 1 introduction preliminary user?s manual a15015ej3v0um 22 1.5 function blocks 1.5.1 internal block diagram data cache interface ifinsz1, ifinsz0 ifirome ifirob2 ifirobe ifiropr ifimode2 ifira16 ifira32 ifira64 ifirase ifirabe ifiuswe ifimaen ifid256 ifiunch1, ifiunch0 fcomb pheva eintak eclrip ifieva ifiwrth evastb evdstb evad15 to evad0 evclrip evintak evintrq evintlv6 to evintlv0 evien evoen vpa13 to vpa0 vpdi15 to vpdi0 vpwrite vpstb vplock vpubenz vpretr vpdact vdselpz vdcsz7 to vdcsz0 vmseq2 to vmseq0 vmctyp2 to vmctyp0 vmsize1, vmsize0 vmbenz3 to vmbenz0 vmttyp1, vmttyp0 vaack vmstz vmwrite vmlock vmbstr vmwait vmlast vmahld vbdv vptclk phtest tesen tbo34 to tbo0 tbredz phtdin1, phtdin0 vpresz tmode1, tmode0 tbi39 to tbi0 program counter general-purpose registers multiplier (32 x 32 64) alu barrel shifter cpu v s b iddarq iddrrq iddwrq idaack idseq2 idseq4 irrsa idretr ides iddrdy idrrdy idhum idea27 to idea0 ided31 to ided0 idunch int63 to int0 nmi2 to nmi0 idmastp dmarq3 to dmarq0 dmtco3 to dmtco0 dmactv3 to dmactv0 resetz vbclk irama27 to irama2 iramz31 to iramz0 iramen iramwr3 to iramwr0 iramrwb iraoz31 to iraoz0 iramwt test bunri phtdo1, phtdo0 dma control unit (dmac) bus bridge (bbr) ifimode3 instruction queue bus arbiter test interface control unit (tic) npb iroma19 to iroma2 iromz31 to iromz0 iromen iromcs iromia iromae iromwt v f b system registers cgrel swstoprq hwstoprq stopz stprq stpak standby control unit (stbc) evirel evlkrt interrupt control unit (intc) v d b eintrq eintlv6 to eintlv0 trg1, trg0 exhlt ddo idbr2 to idbr0 mskhrq drstz dbint romtype clkb1 msknmi2 to msknmi0 dbrdy tapsm3 to tapsm0 dck dms ddi mw ait trcclk trcdata3 to trcdata0 trcend evttrg ddoout ddoenb dbresz resmk mskstp dcresz ibdrrq ibea25 to ibea2 ibaack ibdrdy ibdle3 to ibdle0 ibedi31 to ibedi0 ibbtft iidrrq iiea25 to iiea2 iiaack iidlef iiedi31 to iiedi0 iibtft iircan bcunch instruction cache interface system controller bus control unit (bcu) external intc interface dcwait debug control unit (dcu) (dcu) vma27 to vma0 vbdi31 to vbdi0 vbdo31 to vbdo0 vbdc vsbenz1 vsstz vswrite vslock vswait vslast vsahld vsa13 to vsa0 vpdo15 to vpdo0 vsselpz bunriout vpdv vareq vapreq
chapter 1 introduction preliminary user?s manual a15015ej3v0um 23 1.5.2 internal units (1) cpu the cpu uses five-stage pipeline control to enable single-clock execution of address calculations, arithmetic and logic operations, data transfers, and almost all other instruction processing. other dedicated on-chip hardware, such as a hardware multiplier that enables high-speed processing of 32-bit 32-bit multiplication and a barrel shifter, help accelerate the processing of complex instructions (see chapter 3 cpu ). (2) bcu the bus control unit (bcu), which operates as a bus master on the vsb, controls the on-chip bus bridge (bbr), test interface control unit (tic), and peripheral macros (bus slaves) such as the memory controller (memc) connected to the vsb (see chapter 4 bcu ). (3) bbr the bus bridge (bbr) converts signals for the vsb to signals for the npb. the bbr sets up the wait insertion function and retry function for peripheral macros connected to the npb (see chapter 5 bbr ). (4) stbc the standby control unit (stbc) controls the external clock generator (cg) when the power save function (halt mode, software stop mode, or hardware stop mode) is executed (see chapter 6 stbc ). (5) dmac the dma control unit (dmac) is a four-channel control unit that controls data transfers between memory and peripheral macros or between memory and memory based on dma transfer requests issued via the dmarq3 to dmarq0 pins or software triggers (see chapter 7 dmac ). (6) intc the interrupt control unit (intc) processes various types of interrupt requests (see chapter 8 intc ). (7) tic the test interface control unit (tic) is used for test function control. when the tic is set to test mode, test control signals become effective (see chapter 9 test function ). (8) dcu the debug control unit (dcu) is equipped with an rcu (run control unit), trcu (trace control unit), and teu (trigger event unit) (see chapter 10 dcu ). (9) bus arbiter the bus arbiter receives bus control requests from multiple bus masters and arbitrates bus access rights.
chapter 1 introduction preliminary user?s manual a15015ej3v0um 24 1.6 functional differences between NU85ET and nb85et item NU85ET nb85et vsb data bus (n = 31 to 0) vbdin (input), vbdon (output) vbdn (i/o) vma27 to vma0 (output) vsa13 to vsa0 (input) vba27 to vba0 (i/o) vmttyp1, vmttyp0 (output) vbttyp1, vbttyp0 (i/o) vmstz (output) vsstz (input) vbstz (i/o) vmbenz3 to vmbenz0 (output) vsbenz1 (input) vbbenz3 to vbbenz0 (i/o) vmsize1, vmsize0 (output) vbsize1, vbsize0 (i/o) vmwrite (output) vswrite (input) vbwrite (i/o) vmlock (output) vslock (input) vblock (i/o) vmctyp2 to vmctyp0 (output) vbctyp2 to vbctyp0 (i/o) vmseq2 to vmseq0 (output) vbseq2 to vbseq0 (i/o) vmbstr (output) vbbstr (i/o) vmwait (input) vswait (output) vbwait (i/o) vmlast (input) vslast (output) vblast (i/o) vmahld (input) vsahld (output) vbahld (i/o) vdselpz (output) vsselpz (input) vdselpz (i/o) vsb master/slave control pins vdcsz7 to vdcsz0 (output) vdcsz7 to vdcsz0 (i/o) npb data bus (n = 15 to 0) vpdin (input), vpdon (output) vpdn (i/o) npb data output bus control output pin vpdv (none) vsb data output bus control output pin vbdv (none) bus access right request output pin vapreq (none) test mode status output pin bunriout (none) vbdn (n = 31 to 0) vbdin, vbdon vbdn vxttypn (n = 1, 0) vmttypn vbttypn i/o timing vxwait, vxlast, vxahld vmwait, vmlast, vmahld, vswait, vslast, vsahld vbwait, vblast, vbahld pin status at reset, during idle vxa27 to vxa0, vxsize1, vxsize0, vxseq2 to vxseq0, vbd31 to vbd0 low-level output (vma27 to vma0, vmsize1, vmsize0, vmseq2 to vmseq0, vbdo31 to vbdo0) undefined (vba27 to vba0, vbsize1, vbsize0, vbseq2 to vbseq0, vbd31 to vbd0)
preliminary user?s manual a15015ej3v0um 25 chapter 2 pin functions 2.1 list of pin functions (1/5) pin name i/o function vpa13 to vpa0 output address output for peripheral macro connected to npb vpdi15 to vpdi0 note input data input from peripheral macro connected to npb vpdo15 to vpdo0 output data output to peripheral macro connected to npb vpwrite output write access strobe output vpstb output data strobe output vplock output bus lock output vpubenz output upper byte enable output vpretr note input retry request input from peripheral macro connected to npb vpdact input active level input from external address decoder npb pins vpdv output data output (vpdo15 to vpdo0) control output vareq input bus access right request input from external bus master vaack output bus access right acknowledge output vapreq output bus access right request output from internal bus master (cpu, dmac) vbdi31 to vbdi0 note input data input from macro connected to vsb vbdo31 to vbdo0 output data output to macro connected to vsb vma27 to vma0 output address output to macro connected to vsb vmttyp1, vmttyp0 output bus transfer type output vmstz output transfer start output vmbenz3 to vmbenz0 output byte enable output vmsize1, vmsize0 output transfer size output vmwrite output read/write status output vmlock output bus lock output vmctyp2 to vmctyp0 output bus cycle status output vmseq2 to vmseq0 output sequential status output vmbstr output burst read status output vmwait note input wait response input vmlast note input last response input vmahld note input address hold response input vdselpz output peripheral i/o area access status output vsa13 to vsa0 note input address input from macro connected to vsb vsstz input transfer start input vsbenz1 input byte enable input vsb pins vswrite input read/write status input note connected internally to bus holder.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 26 (2/5) pin name i/o function vslock input bus lock input vswait output wait response output vslast output last response output vsahld output address hold response output vsselpz input peripheral i/o area access status input vbdc output data input (vbdi31 to vbdi0) control output vbdv output data output (vbdo31 to vbdo0) control output vsb pins vdcsz7 to vdcsz0 output chip select output resetz input system reset input vbclk input internal system clock i nput clkb1 output internal system clock output cgrel input clock generator release input swstoprq output software stop mode request output to clock generator hwstoprq output hardware stop mode request output to clock generator stopz input hardware stop mode request input stprq output hardware/software stop mode request output to memc system control pins stpak input acknowledge input for stprq input of memc idmastp input dma transfer termination input dmarq3 to dmarq0 input dma transfer request input dmtco3 to dmtco0 output terminal count (dma transfer completion) output dmac pins dmactv3 to dmactv0 output dma acknowledge output nmi2 to nmi0 input non-maskable interrupt request (nmi) input intc pins int63 to int0 input maskable interrupt request input iroma19 to iroma2 output rom address output iromz31 to iromz0 input rom data input iromen output rom access enable output iromwt input rom wait input iromcs output iromia output vfb pins iromae output nec reserved pins (leave open) irama27 to irama2 output ram address output iramz31 to iramz0 input ram data input iraoz31 to iraoz0 output ram data output iramen output ram access enable output iramwr3 to iramwr0 output ram write enable output iramrwb output ram read/write status output vdb pins iramwt input ram wait input ibdrrq input fetch request input from instruction cache instruction cache pins ibea25 to ibea2 input fetch address input from instruction cache
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 27 (3/5) pin name i/o function ibaack output address acknowledge output to instruction cache ibdrdy output data ready output to instruction cache ibdle3 to ibdle0 output data latch enable output to instruction cache ibedi31 to ibedi0 output data output to instruction cache ibbtft input nec reserved pin (input low level) iidrrq output fetch request output to instruction cache iiea25 to iiea2 output fetch address output to instruction cache iiaack input address acknowledge input from instruction cache iidlef input data latch enable input from instruction cache iiedi31 to iiedi0 input data input from instruction cache iibtft output branch target fetch status output to instruction cache iircan output code cancel status output to instruction cache instruction cache pins bcunch output uncache status output to instruction cache iddarq output read/write access request output to data cache idaack output acknowledge output iddrrq input vsb read operation request input to bcu iddwrq input vsb write operation request input to bcu idseq4 input read/write operation type setting input idseq2 input read/write operation type setting input irrsa output vdb hold status output idretr output read retry request output idunch output uncache status output ides output nec reserved pin note 1 iddrdy output read data ready output idrrdy input read data ready input from data cache idhum input hit under miss-hit read input idea27 to idea0 input address input data cache pins ided31 to ided0 note 2 i/o data input/output eintlv6 to eintlv0 input interrupt type input from external intc eintrq input interrupt request input from external intc eintak output interrupt acknowledge output to external intc external intc pins eclrip output interrupt servicing end output to external intc dck input dcu clock input dms input debug mode select input ddi input debug data input ddo output debug data output dcu pins drstz input dcu reset input notes 1. when using the data cache, always connect this pin to the ides pin of the data cache. leave open when unused. 2. connected internally to bus holder.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 28 (4/5) pin name i/o function trcclk output trace clock output trcdata3 to trcdata0 output trace data output trcend output trace processing end output evttrg output event trigger output mwait input wait insertion control input dcwait output wait insertion control output dbint input external debug interrupt input romtype input nec reserved pin (input low level) dcresz output idbr2 to idbr0 output exhlt output ddoout output ddoenb output tapsm3 to tapsm0 output trg1, trg0 output dbresz output resmk output mskstp output msknmi2 to msknmi0 output mskhrq output dcu pins dbrdy output nec reserved pin (leave open) evastb input address strobe input evdstb input data strobe input evad15 to evad0 note i/o address/data input/output evien output evadn input enable output (n = 15 to 0) evoen output evadn output enable output (n = 15 to 0) evlkrt note i/o lock/retry input/output evirel input standby release input evclrip input ispr clear input evintak input interrupt acknowledge input evintrq output interrupt request output peripheral eva chip mode pins evintlv6 to evintlv0 output interrupt vector output note connected internally to bus holder.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 29 (5/5) pin name i/o function ifirome input rom mapping enable input ifirob2 input rom area location setting input ifira64 input ram area size selection input ifira32 input ram area size selection input ifira16 input ram area size selection input ifimaen input misalign access setting input ifid256 input data area setting input ifinsz1, ifinsz0 input vsb data bus size (initial value) selection input ifiwrth input data cache write-back/write-through mode selection input ifiunch1 input data cache setting input ifiunch0 input instruction cache setting input pheva input peripheral eva chip mode setting input ifieva input external intc/internal intc selection input ifirobe input ifiropr input ifirase input ifirabe input ifimode3 input ifimode2 input ifiuswe input operation mode setting pins fcomb input nec reserved pins (input low level) tbi39 to tbi0 input input test bus tbo34 to tbo0 output output test bus test input test bus control input bunri input normal/test mode selection input bunriout output test mode status output phtdo1, phtdo0 note input peripheral macro test input tesen output peripheral macro test enable output vptclk output peripheral macro test clock output phtdin1, phtdin0 output peripheral macro test output vpresz output peripheral macro reset output phtest output peripheral test mode status output tmode1, tmode0 output test mode pins tbredz output nec reserved pins (leave open) note connected internally to bus holder.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 30 2.2 explanation of pin functions 2.2.1 npb pins (1) vpa13 to vpa0 (output) these are pins from which addresses are output to peripheral macros connected to the npb. they specify the lower 14 bits. (2) vpdi15 to vpdi0 (input) these are pins to which data is input from peripheral macros connected to the npb. (3) vpdo15 to vpdo0 (output) these are pins from which data is output to peripheral macros connected to the npb. (4) vpwrite (output) this is the write access strobe output pin for the vpdo15 to vpdo0 signals. during writing, a high level is output. (5) vpstb (output) this is the data strobe output pin. (6) vplock (output) this is the bus lock output pin. if an interrupt request occurs while a read modify write access to the interrupt control register (picn) is being executed, this pin outputs a bus lock signal to avoid loss of the interrupt request. it outputs a high level during a read modify write access. even when an interrupt request occurs, transfer to the pifn flag of the picn register is not performed while this signal is outputting a high level (n = 0 to 63). (7) vpubenz (output) this is the higher byte enable output pin. it outputs a low level during a halfword data access or a byte data access to an odd address. it outputs a high level during a byte access to an even address. (8) vpretr (input) this is the pin to which retry requests are input from peripheral macros connected to the npb. if a high level is input to this pin and to the vpdact pin at the falling edge of the vpstb signal, the read/write operation is performed again. (9) vpdact (input) this pin, which is an input pin for input from an external address decoder, is used to enable the retry function. when a high level is input, the retry function is enabled. when a low level is input, any retry request by vpretr input will be ignored. (10) vpdv (output) this is the data output (vpdo15 to vpdo0) control signal output pin. it outputs a high level during writing. to configure a bidirectional data bus, connect this pin to the 3-state buffer enable pin connected to the data bus for data output control.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 31 2.2.2 vsb pins (1) vareq (input) this is the pin to which bus access right requests are input from an external bus master. (2) vaack (output) this is an output pin for indicating that the bus access right request signal (vareq) from an external bus master has been acknowledged. (3) vapreq (output) this pin outputs bus access right requests from the internal bus master (cpu, dmac) to the external bus master. this pin is used when a bus master and a bus arbiter exist externally, to perform output to the external bus arbiter. this pin becomes active (1) when a bus access right request is generated, and it becomes inactive (0) when the bus cycle responding to the request has been generated. its transition to active (1) during the cpu cycle indicates that there is a request from the dma, and its transition to active (1) during the dma cycle indicates that there is a request from the cpu. (4) vbdi31 to vbdi0 (input) these pins constitute a data input bus for macro connected to the vsb. (5) vbdo31 to vbdo0 (output) these pins constitute a data output bus for macro connected to the vsb. (6) vma27 to vma0 (output), vsa13 to vsa0 (input) these pins constitute an address bus for macro connected to the vsb. the NU85ET uses the vma27 to vma0 pins when it has the bus access right, and the vsa13 to vsa0 pins when it operates as a bus slave. (7) vmttyp1, vmttyp0 (output) these pins output the bus transfer type when the NU85ET has the bus access right. table 2-1. vmttyp1 and vmttyp0 signals vmttyp1 vmttyp0 transfer type 0 0 address-only transfer (transfer without data processing) 1 0 non-sequential transfer (single transfer or burst transfer) 1 1 sequential transfer (transfer in which the address currently being transferred is related to the previously transferred address) 0 1 (reserved for future function expansion) remark 0: low level 1: high level (8) vmstz (output), vsstz (input) these are low-level active pins that indicate transfer start. the NU85ET uses the vmstz pin when it has the bus access right, and the vsstz pin when it operates as a bus slave.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 32 (9) vmbenz3 to vmbenz0 (output), vsbenz1 (input) these are low-level active pins that indicate the enabled byte data out of the four data bus (vbdi31 to vbdi0, vbdo31 to vbdo0) parts. the NU85ET uses the vmbenz3 to vmbenz0 pins when it has the bus access right, and the vsbenz1 pin for the bus bridge (bbr) to generate the vpubenz signal when it operates as a bus slave. table 2-2. vmbenz3 to vmbenz0 and vsbenz1 signals active (low level) signal enabled byte data vmbenz3 vbdi31 to vbdi24, vbdo31 to vbdo24 vmbenz2 vbdi23 to vbdi16, vbdo23 to vbdo16 vmbenz1, vsbenz1 vbdi15 to vbdi8, vbdo15 to vbdo8 vmbenz0 vbdi7 to vbdi0, vbdo7 to vbdo0 (10) vmsize1, vmsize0 (output) these are pins that output the data transfer size when the NU85ET has the bus access right. table 2-3. vmsize1 and vmsize0 signals vmsize1 vmsize0 data transfer size 0 0 byte (8 bits) 0 1 halfword (16 bits) 1 0 word (32 bits) 1 1 (reserved for future function expansion) remark 0: low level 1: high level (11) vmwrite (output), vswrite (input) these are pins that indicate the data transfer direction (read/write status). they become high level during write access. the NU85ET uses the vmwrite pin when it has the bus access right, and the vswrite pin when it operates as a bus slave. (12) vmlock (output), vslock (input) these pins are used to retain the bus access right. these pins are used to prohibit interruption through access from another bus master between the current transfer and the next transfer. the NU85ET uses the vmlock pin when it has the bus access right, and the vslock pin when it operates as a bus slave.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 33 (13) vmctyp2 to vmctyp0 (output) these are pins that output the current bus cycle status when the NU85ET has the bus access right. table 2-4. vmctyp2 to vmctyp0 signals vmctyp2 vmctyp1 vmctyp0 bus cycle status 0 0 0 opcode fetch 0 0 1 data access 0 1 0 misalign access note 0 1 1 read modify write access 1 0 0 opcode fetch of jump address due to branch instruction 1 1 0 dma 2-cycle transfer 1 1 1 dma flyby transfer 1 0 1 (reserved for future function expansion) note output only when a high level is input to the ifimaen pin (misalign access enabled). remark 0: low level 1: high level (14) vmseq2 to vmseq0 (output) these are pins that output the sequential status indicating the transfer size during burst transfer when the NU85ET has the bus access right. these pins indicate ?burst transfer length? at the start of burst transfer, ?continuous? during burst transfer, and ?single transfer? at the end of burst transfer. in the following cases, vsb changes to burst transfer and the sequential status indicates ?continuous?. ? vsb is 8 bits wide and 16-/32-bit data transfer was performed ? vsb is 16 bits wide and 32-bit data transfer was performed ? refill from instruction/data cache ? 32-bit data transfer to peripheral macro connected to npb (16-bit data bus width) table 2-5. vmseq2 to vmseq0 signals vmseq2 vmseq1 vmseq0 sequential status 0 0 0 single transfer 0 0 1 continuous (indicates that the next transfer address is related to the current transfer address) note 0 1 0 continuous 4 times (burst transfer length: 4) 0 1 1 continuous 8 times (burst transfer length: 8) 1 0 0 continuous 16 times (burst transfer length: 16) 1 0 1 continuous 32 times (burst transfer length: 32) 1 1 0 continuous 64 times (burst transfer length: 64) 1 1 1 continuous 128 times (burst transfer length: 128) note this is output during continuous 2 times, or continuous 4, 8, 16, 32, 64, or 128 times transfer. remark 0: low level 1: high level
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 34 (15) vmbstr (output) this pin outputs the burst read status indicating that the current transfer is opcode fetch from external rom when the NU85ET has the bus access right and rom connected as external memory (accessed via the vsb) is used. this pin operates with the same timing as the address bus. (16) vmwait (input), vswait (output) these are wait response pins. these signals are output to the bus master to request additional bus cycles when the selected bus slave has not completed data output preparations. when these signals become high level, the bus cycle changes to the wait status. the NU85ET uses the vmwait pin when it has the bus access right, and the vswait pin when it operates as a bus slave. if a memory controller (memc) is connected to the NU85ET, a high level is output to the vmwait pin of the NU85ET from the memc while the vsb cycle occurs because the access cycle is always 2 or more clocks. (17) vmlast (input), vslast (output) these are last response pins. these pins are used when the bus decoder requires a decode cycle. in the case of a system where several slave devices are connected externally and a bus decoder has been added to select slaves, decoding for bus slave selection is normally performed during non-sequential transfer. thus even when attempts to change a slave device are made during sequential transfer such as burst transfer, the decode cycle for slave selection cannot be issued. in such a case, the slave device outputs a last response indicating that the slave selection signal has changed to the bus master. when there is a last response from the slave device, the bus master makes the next bus cycle a non-sequential transfer to enable decode cycle issuance. the NU85ET uses the vmlast pin when it has the bus access right, and the vslast pin when it operates as a bus slave. the vslast pin, however, is fixed to low-level output and does not become active. (18) vmahld (input), vsahld (output) these are address hold response pins. these signals are output to the bus master when the selected bus slave has completed data output preparations and requests the bus cycle. when this signal and the vxwait signal become high level, the bus cycle goes into the address hold status. since, in the address hold status, addresses do not change even during the data read and write cycles, there is no need to latch addresses and the circuit can thus be kept simple. the NU85ET uses the vmahld pin when it has the bus access right, and the vsahld pin when it operates as a bus slave. the vsahld pin, however, is fixed to low-level output and does not become active. if a memory controller (memc) is connected to the NU85ET, a high level is output to the NU85ET from the memc when an idle state is inserted. (19) vdselpz (output), vsselpz (input) these pins are used to output a low level to the bus slave when the bus master accesses a peripheral i/o area or programmable peripheral i/o area. the NU85ET uses the vdselpz pin when it has the bus access right, and the vsselpz pin when it operates as a bus slave.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 35 (20) vbdc (output) this is data input (vbdi31 to vbdi0) control signal output pin. this pin outputs a high level during a read cycle and during dma flyby transfer from the external memory to the i/o. when connecting a bus slave that has an i/o separated data bus and a bidirectional data bus, this pin is connected to the enable pin of the 3-state buffer connected to the data bus for data input control. (21) vbdv (output) this is data output (vbdo31 to vbdo0) control signal output pin. this pin outputs a high level during a write cycle and during dma flyby transfer from the i/o to the external memory. when configuring a bidirectional data bus, this pin is connected to the enable pin of the 3-state buffer connected to the data bus for data output control. (22) vdcsz7 to vdcsz0 (output) these are low-level active chip select output pins. for details, refer to 4.3 programmable chip select function . 2.2.3 system control pins (1) resetz (input) this is the clocked system reset input pin. when the stable input clock rising edge is detected five times after a low level was input to this pin, the pin statuses and internal signals are completely initialized (the time required until the statuses of the internal signals and each pin are stabilized is 5 clocks or less depending on the pin. noise elimination is not performed.). also, when the input clock rising edge is detected four times after this signal has risen from low level to high level, the pipeline is cleared and program execution starts from memory address 0. in addition to normal initialization and start operations, this pin is used to cancel the power save function. caution be sure to input the resetz signal so that the setup and hold times referenced to the vbclk signal are satisfied. figure 2-1. acknowledgement of resetz signal vbclk (input) resetz (i nput) internal system reset signal note completion of initialization start of program execution completion of initialization start of program execution note note input at least five clocks of the vbclk signal while the resetz signal is low level. always input a stable clock to the vbclk pin.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 36 to stop vbclk oscillation by system reset, input at least five vbclk clocks after the system reset has become low level to completely initialize the status of the pins related to the cpu and the internal signals, then stop vbclk oscillation. unless this restriction is followed, the debugger may not start successfully. figure 2-2. stopping vbclk oscillation by system reset vbclk (input) resetz (input) internal system reset signal start of program execution completion of initialization at least 5 clocks input during reset ic starts up in 4 clocks after reset release vbclk stopped after initialization completed (except during power-on) (2) vbclk (input) this is the external clock input pin for the internal system clock. a 50% duty stable clock is input from an external clock control circuit. (3) clkb1 (output) this is the internal system clock output pin. (4) cgrel (input) this is the release input pin for the external clock generator (cg). an active level (high level) is input upon the start of vbclk input at least one clock after stop mode is canceled and the oscillation stabilization time has been secured (it is not necessary to set cgrel input at the same time as vbclk input). (5) swstoprq (output) this is the pin from which software stop mode requests are output to the external clock generator (cg). when software stop mode is set, this pin outputs a high-level signal. vbclk input from the cg is stopped by using this signal. when software stop mode is canceled, this pin outputs a low-level signal. (6) hwstoprq (output) this is the pin from which hardware stop mode requests are output to the external clock generator (cg). when hardware stop mode is set by stopz input, this pin outputs a high-level signal. vbclk input from the cg is stopped by using this signal. when hardware stop mode is canceled, this pin outputs a low-level signal. (7) stopz (input) this is a hardware stop mode request input pin. when a low-level signal is input, the NU85ET is set to hardware stop mode.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 37 (8) stprq (output) this is the pin from which hardware/software stop mode requests are output to the memory controller (memc). (9) stpak (input) this is the pin to which acknowledge signals are input from the memory controller (memc) acknowledging the stprq signal. 2.2.4 dmac pins (1) idmastp (input) this is the dma transfer forcible interrupt input pin. input an active level (high level) of two clocks in synchronization with the rising edge of the vbclk signal. to restart transfer, set (1) the en bit of the drst register after inputting a low level to this pin. (2) dmarq3 to dmarq0 (input) these are the dma transfer request input pins. input an active level (high level) in synchronization with the rising edge of the vbclk signal, and continue inputting until the corresponding dmactvn signal becomes high level (n = 3 to 0). (3) dmtco3 to dmtco0 (output) these are the terminal count (dma transfer completion) output pins. a one-clock high level is output from these pins when the final dma transfer is performed. the high level is output in synchronization with the rising edge of the vbclk signal. (4) dmactv3 to dmactv0 (output) these are the dma acknowledge output pins. these pins become active (high-level output) during a 2-cycle transfer vsb read or vsb write cycle, or during a flyby transfer. 2.2.5 intc pins (1) nmi2 to nmi0 (input) these are the non-maskable interrupt request (nmi) input pins. when a rising edge is input, a non-maskable interrupt is generated. (2) int63 to int0 (input) these are the maskable interrupt request input pins. when a rising edge is input, a maskable interrupt is generated. 2.2.6 vfb pins (1) iroma19 to iroma2 (output) these pins constitute a bus from which addresses are output to rom. (2) iromz31 to iromz0 (input) these pins constitute a bus to which data is input from rom.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 38 (3) iromen (output) this is the pin from which access enable signals are output to rom. it changes in synchronization with the falling edge of the vbclk signal. (4) iromwt (input) this is the pin to which wait signals are input from rom. a high level is input during the wait period. (5) iromcs, iromia, iromae (output) these are nec reserved pins. leave them open. 2.2.7 vdb pins (1) irama27 to irama2 (output) these pins constitute a bus from which addresses are output to ram. the irama27 to irama16 signals are output for the data cache. therefore, they do not have to be decoded when ram is connected. (2) iramz31 to iramz0 (input) these pins constitute a bus to which data is input from ram. (3) iraoz31 to iraoz0 (output) these pins constitute a bus from which data is output to ram. (4) iramen (output) this is the pin from which access enable signals are output to ram. it changes in synchronization with the falling edge of the vbclk signal. (5) iramwr3 to iramwr0 (output) these are the pins from which write enable signals are output to ram. they are high-level active pins that indicate the enabled byte data among the output data bus pins (iraoz31 to iraoz0). table 2-6. iramwr3 to iramwr0 signals active (high-level output) signal enabled byte data iramwr0 iraoz7 to iraoz0 iramwr1 iraoz15 to iraoz8 iramwr2 iraoz23 to iraoz16 iramwr3 iraoz31 to iraoz24 (6) iramrwb (output) this is the pin from which the read/write status is output to ram. during reading, a high-level signal is output. during writing, a low-level signal is output. (7) iramwt (input) this is the pin to which wait signals are input from the data cache. a high level is input during the wait period.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 39 2.2.8 instruction cache pins (1) ibdrrq (input) this is the pin to which fetch requests are input from the instruction cache. a request signal is input which fetches data from the external memory to the NU85ET. (2) ibea25 to ibea2 (input) these pins constitute a bus to which fetch addresses are input from the instruction cache. upon a miss-hit, the address to be read is input from the instruction cache. (3) ibaack (output) this is the pin from which address acknowledgements are output to the instruction cache. this signal is output when the NU85ET recognizes the ibea25 to ibea2 signals input from the instruction cache. (4) ibdrdy (output) this is the pin from which data ready signals are output to the instruction cache. upon an instruction cache miss-hit, when the NU85ET has finished fetching the data to be read from the external memory, this signal is output to indicate that a refill for the instruction cache is ready. (5) ibdle3 to ibdle0 (output) these are the pins from which data latch enable signals are output to the instruction cache. (6) ibedi31 to ibedi0 (output) these pins constitute a bus from which data is output to the instruction cache. upon an instruction cache miss-hit, the data to be refilled is output to the instruction cache. (7) ibbtft (input) this is an nec reserved pin. always input a low level. note that the ibbtft pin of the connected instruction cache should be left open when using the instruction cache. (8) iidrrq (output) this is the pin from which fetch requests are output to the instruction cache. (9) iiea25 to iiea2 (output) these pins constitute a bus from which fetch addresses are output to the instruction cache. the address to be fetched is output from the external memory simultaneous with the fetch request (iidrrq). (10) iiaack (input) this is the pin to which address acknowledgements are input from the instruction cache. this signal is input to the NU85ET when the instruction cache recognizes the fetch address signals (iiea25 to iiea2) input from the NU85ET. (11) iidlef (input) this is the pin to which data latch enable signals are input from the instruction cache.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 40 (12) iiedi31 to iiedi0 (input) these pins constitute a bus to which data is input from the instruction cache. the data to be read is input from the instruction cache. (13) iibtft (output) this is the pin from which the branch target fetch status is output to the instruction cache. a high level is output when a jump destination address is fetched due to a branch instruction. (14) iircan (output) this is the pin from which the code cancel status is output to the instruction cache. this signal cancels previous requests when data becomes unwanted due to a branch or interrupt after the NU85ET outputs a fetch request to the instruction cache. (15) bcunch (output) this is the pin from which the uncache status is output to the instruction cache. a low level is output when the area in which the instruction cache setting has been set to cache-enable using the cache configuration register (bhc) is accessed. 2.2.9 data cache pins (1) iddarq (output) this is the pin from which read/write access requests are output to the data cache. (2) idaack (output) this is the pin from which acknowledgements are output to the data cache. this signal is output when the NU85ET recognizes the idea27 to idea0 signals input from the data cache. (3) iddrrq, iddwrq, idseq4, idseq2 (input) these are the pins to which the operation type settings are input from the data cache. table 2-7. iddrrq, iddwrq, idseq4, and idseq2 signals iddrrq iddwrq idseq4 idseq2 operation type 1 0 1 0 4-word sequential read 1 0 0 1 2-word sequential read 1 0 0 0 1-word read 0 1 1 0 4-word sequential write 0 1 0 1 2-word sequential write 0 1 0 0 1-word write 1 1 1 1 1-word write 1 1 1 0 1-halfword write 11001-byte write other than above setting prohibited remark 0: low-level input 1: high-level input
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 41 (a) iddrrq (input) this is a pin to which vsb read operation requests are input to the bcu. (b) iddwrq (input) this is a pin to which vsb write operation requests are input to the bcu. (c) idseq4 (input) this is a pin to which the read/write operation type settings are input. (d) idseq2 (input) this is a pin to which the read/write operation type settings are input. (4) irrsa (output) this is the pin from which the vdb hold status is output to the data cache. an active level (high level) is output when the vdb is accessing ram or is in the hold state. (5) idretr (output) this is the pin from which read retry requests are output to the data cache. (6) idunch (output) this is the pin from which the uncache status is output to the data cache. a low level is output when the area in which the data cache setting has been set to cache-enable using the cache configuration register (bhc) is accessed. (7) ides (output) this is an nec reserved pin. when using the data cache, be sure to connect this pin to the ides pin of the connected data cache. when not using the data cache, leave this pin open. (8) iddrdy (output) this is the pin from which read data ready signals are output to the data cache. upon a data cache miss-hit, when the NU85ET has finished fetching the data to be read from the external memory, this signal is output to indicate that a refill for the data cache is ready. (9) idrrdy (input) this is the pin to which read data ready signals are input from the data cache. (10) idhum (input) this is the pin to which hit-under-miss-hit read signals are input from the data cache. a high level is input in cases when a subsequent access is made to the data cache while the external memory is being accessed due to the generation of a miss-hit during a read operation, and the data that scored a hit on this subsequent access is input to the NU85ET ahead of the data from the external memory (hit-under-miss-hit). (11) idea27 to idea0 (input) these pins constitute a bus to which addresses are input from the data cache. the address to be accessed is input to the NU85ET upon a data cache miss-hit. (12) ided31 to ided0 (input/output) these pins constitute a data bus through which data is input/output from/to the data cache. data for refilling the data cache and data written to the external memory in write back mode is exchanged.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 42 2.2.10 external intc pins (1) eintlv6 to eintlv0 (input) these are the pins to which the interrupt type is input from the external intc. the input level of each signal indicates the handler address. table 2-8. eintlv6 to eintlv0 signals eintlv6 eintlv5 eintlv4 eintlv3 eintlv2 eintlv1 eintlv0 interrupt type 0000000(no interrupt r equest) 0000001non-maskable interrupt 0 (nmi0) note 1 0000010non-maskable interrupt 1 (nmi1) notes 1, 3 0000011non-maskable interrupt 2 (nmi2) notes 2, 3 00001 (reserved for future function expansion) 0001000maskable interrupt 0 (int0) 0001001maskable interrupt 1 (int1) 1111011maskable interrupt 115 (int115) 1111100maskable interrupt 116 (int116) 1111111halt m ode release request other than above (reserved for future function expansion) notes 1. only valid when the np bit of the psw register is 0. 2. valid regardless of the value of the np bit of the psw register. 3. cannot be returned from the nmi handler address. remark 0: low-level input 1: high-level input : arbitrary
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 43 the interrupts are listed in detail in the table below. table 2-9. list of interrupts from external intc (1/2) type name exception code handler address type name exception code handler address nmi0 0010h 00000010h int33 0290h 00000290h nmi1 0020h 00000020h int34 02a0h 000002a0h non-maskable interrupt nmi2 0030h 00000030h int35 02b0h 000002b0h int0 0080h 00000080h int36 02c0h 000002c0h int1 0090h 00000090h int37 02d0h 000002d0h int2 00a0h 000000a0h int38 02e0h 000002e0h int3 00b0h 000000b0h int39 02f0h 000002f0h int4 00c0h 000000c0h int40 0300h 00000300h int5 00d0h 000000d0h int41 0310h 00000310h int6 00e0h 000000e0h int42 0320h 00000320h int7 00f0h 000000f0h int43 0330h 00000330h int8 0100h 00000100h int44 0340h 00000340h int9 0110h 00000110h int45 0350h 00000350h int10 0120h 00000120h int46 0360h 00000360h int11 0130h 00000130h int47 0370h 00000370h int12 0140h 00000140h int48 0380h 00000380h int13 0150h 00000150h int49 0390h 00000390h int14 0160h 00000160h int50 03a0h 000003a0h int15 0170h 00000170h int51 03b0h 000003b0h int16 0180h 00000180h int52 03c0h 000003c0h int17 0190h 00000190h int53 03d0h 000003d0h int18 01a0h 000001a0h int54 03e0h 000003e0h int19 01b0h 000001b0h int55 03f0h 000003f0h int20 01c0h 000001c0h int56 0400h 00000400h int21 01d0h 000001d0h int57 0410h 00000410h int22 01e0h 000001e0h int58 0420h 00000420h int23 01f0h 000001f0h int59 0430h 00000430h int24 0200h 00000200h int60 0440h 00000440h int25 0210h 00000210h int61 0450h 00000450h int26 0220h 00000220h int62 0460h 00000460h int27 0230h 00000230h int63 0470h 00000470h int28 0240h 00000240h int64 0480h 00000480h int29 0250h 00000250h int65 0490h 00000490h int30 0260h 00000260h int66 04a0h 000004a0h int31 0270h 00000270h int67 04b0h 000004b0h maskable interrupt int32 0280h 00000280h maskable interrupt int68 04c0h 000004c0h
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 44 table 2-9. list of interrupts from external intc (2/2) type name exception code handler address type name exception code handler address int69 04d0h 000004d0h int93 0650h 00000650h int70 04e0h 000004e0h int94 0660h 00000660h int71 04f0h 000004f0h int95 0670h 00000670h int72 0500h 00000500h int96 0680h 00000680h int73 0510h 00000510h int97 0690h 00000690h int74 0520h 00000520h int98 06a0h 000006a0h int75 0530h 00000530h int99 06b0h 000006b0h int76 0540h 00000540h int100 06c0h 000006c0h int77 0550h 00000550h int101 06d0h 000006d0h int78 0560h 00000560h int102 06e0h 000006e0h int79 0570h 00000570h int103 06f0h 000006f0h int80 0580h 00000580h int104 0700h 00000700h int81 0590h 00000590h int105 0710h 00000710h int82 05a0h 000005a0h int106 0720h 00000720h int83 05b0h 000005b0h int107 0730h 00000730h int84 05c0h 000005c0h int108 0740h 00000740h int85 05d0h 000005d0h int109 0750h 00000750h int86 05e0h 000005e0h int110 0760h 00000760h int87 05f0h 000005f0h int111 0770h 00000770h int88 0600h 00000600h int112 0780h 00000780h int89 0610h 00000610h int113 0790h 00000790h int90 0620h 00000620h int114 07a0h 000007a0h int91 0630h 00000630h int115 07b0h 000007b0h maskable interrupt int92 0640h 00000640h maskable interrupt int116 07c0h 000007c0h (2) eintrq (input) this is the pin to which interrupt requests are input from the external intc. when a high level is input to this pin, interrupt servicing based on the level input to the eintlv6 to eintlv0 pins will commence. (3) eintak (output) this is an output pin indicating that an interrupt request from the external intc has been acknowledged. a high level is output upon acknowledgement of an interrupt request by the cpu. (4) eclrip (output) this is an output pin indicating that the processing of the interrupt request from the external intc is complete. a high level is output for one clock when the reti instruction is executed by the interrupt servicing routine.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 45 2.2.11 dcu pins (1) dck (input) this is the pin to which the clock for the dcu is input from the n-wire type ie. (2) dms (input) this is the pin to which the debug mode selection is input from the n-wire type ie. (3) ddi (input) this is the pin to which the debug data is input from the n-wire type ie. (4) ddo (output) this is the pin from which the debug data is output to the n-wire type ie. (5) drstz (input) this is the dcu reset input pin. the dcu is reset asynchronously when a low level is input. (6) trcclk (output) this is the trace clock output pin. output is stopped when software/hardware stop mode is entered (the output level becomes undefined). (7) trcdata3 to trcdata0 (output) these are the pins from which trace data is output to the n-wire type ie. (8) trcend (output) this is the pin from which the trace processing end signal is output to the n-wire type ie. (9) evttrg (output) this is an output pin for indicating that an event has been detected. this signal is output in synchronization with a clock that is the system clock divided by 2. a high level of 1-clock width is output when an event is detected. (10) mwait (input) this is the wait insertion control input pin and is the source of the dcwait signal. (11) dcwait (output) this is the debugging wait output pin for external waits output to the memc. the signal input to the mwait pin is output from this pin via an internal mask circuit. this signal becomes active when a low level is input to the mwait pin. (12) dbint (input) this is the debug interrupt input pin. (13) romtype (input) this is an nec reserved pin. input a low level. (14) dcresz, idbr2 to idbr0, exhlt, ddoout, ddoenb, tapsm3 to tapsm0, trg1, trg0, dbresz, resmk, mskstp, msknmi2 to msknmi0, mskhrq, dbrdy (output) these are nec reserved pins. leave them open.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 46 2.2.12 peripheral eva chip mode pins if a high-level signal is input to the pheva pin, the NU85ET is set to peripheral eva chip mode. in peripheral eva chip mode, the asic in which the NU85ET is incorporated is used as a peripheral emulation chip when the in-circuit emulator is used to perform debugging. the peripheral eva chip mode pins constitute an interface with the eva chip within the in-circuit emulator, and various eva chip signals are converted to npb signals via these pins. (1) evastb (input) this is the address strobe input pin. it is connected to the ephastb pin of the eva chip. (2) evdstb (input) this is the data strobe input pin. it is connected to the ephdstb pin of the eva chip. (3) evad15 to evad0 (input/output) these pins constitute an address/data bus. they are connected to the ephadn pins of the eva chip (n = 15 to 0). (4) evien (output) this pin outputs an input enable signal for controlling the direction of the i/o buffer on the evadn bus (n = 15 to 0). (5) evoen (output) this pin outputs an output enable signal for controlling the direction of the i/o buffer on the evadn bus (n = 15 to 0). (6) evlkrt (input/output) this is the lock/retry input/output pin. it is connected to the ephlkrt pin of the eva chip. (7) evirel (input) this is the standby release input pin. (8) evclrip (input) this is the ispr clear input pin. it is connected to the eclrip pin of the eva chip. (9) evintak (input) this is the interrupt acknowledge input pin. it is connected to the eintak pin of the eva chip. (10) evintrq (output) this is the interrupt request output pin. it is connected to the eintrq pin of the eva chip. (11) evintlv6 to evintlv0 (output) these are the interrupt vector output pins. they are connected to the eintlv6 to eintlv0 pins of the eva chip.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 47 2.2.13 operation mode setting pins the following pins are used to specify the operation mode of the NU85ET. the input level to these pins should remain fixed during NU85ET operation. do not change the level input to these pins during operation. (1) ifirome (input) this is the rom area setting input pin. the setting is made according to the level input to the pin, as shown below. ? low level: rom connected as external memory (via the vsb) is used ? high level: rom connected to the vfb is used when a low level is input to this pin, instruction processing begins after branching to the reset entry address of the external memory, following the release of system reset. instruction fetches and data access to the rom connected to the vfb cannot be performed. if a high level is input to this pin and a low level is input to the ifirob2 pin, instruction processing begins after branching to the reset entry address of the rom connected to the vfb, following the release of system reset. if a high level is input to the ifirob2 pin, instruction processing begins after branching to the reset entry address of the external memory, following the release of system reset, however it is possible to access the area of rom connected to the vfb that is allocated to addresses 100000h and higher. (2) ifirob2 (input) this is the rom area relocation setting input pin. it specifies the range for locating the rom area. the rom area range is set as follows according to the level input to this pin. ? low level: addresses 000000h to 0fffffh ? high level: addresses 100000h to 1fffffh for details, see 3.4.1 (1) rom relocation function . (3) ifira64, ifira32, ifira16 (input) these are ram area size selection input pins. the ram area size is set as follows according to the level input to these pins. for details, see 3.4.2 ram area . table 2-10. ifira64, ifira32, and ifira16 signals ifira64 ifira32 ifira16 ram area size 0004 kb 0 0 1 12 kb 0 1 arbitrary 28 kb 1 arbitrary arbitrary 60 kb remark 0: low-level input 1: high-level input
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 48 (4) ifimaen (input) this is the misalign access setting input pin. misalign access is enabled or disabled as follows according to the level input to this pin. ? low level: misalign access disabled ? high level: misalign access enabled (5) ifid256 (input) this is the data area setting input pin. it is used to set the data area size. each mode is set as follows according to the level input to this pin. for details, see 3.3.2 data area . ? low level: 64 mb mode ? high level: 256 mb mode (6) ifinsz1, ifinsz0 (input) these are the vsb data bus size (initial value) selection input pins. the vsb data bus size is set as follows according to the level input to these pins. table 2-11. ifinsz1 and ifinsz0 signals ifinsz1 ifinsz0 vsb data bus size 0 0 32 bits 0 1 16 bits 1 0 8 bits 1 1 setting prohibited remark 0: low-level input 1: high-level input if the vsb data bus size is changed after reset through the bus size configuration register (bsc), the setting of the bsc register is valid regardless of the level input to these pins. (7) ifiwrth (input) this is the data cache write-back or write-through mode selection input pin. when using the data cache, connect to the ifiwrth pin of the data cache. each mode is set as follows according to the level input to this pin. ? low level: write-back mode ? high level: write-through mode (8) ifiunch1 (input) this is the data cache setting input pin. when using the data cache, connect to the ifiunch1 pin of the data cache. the data cache is enabled or disabled as follows according to the level input to this pin. ? low level: data cache is enabled ? high level: data cache is disabled
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 49 (9) ifiunch0 (input) this is the instruction cache setting input pin. the instruction cache is enabled or disabled as follows according to the level input to this pin. ? low level: instruction cache is enabled ? high level: instruction cache is disabled (10) pheva (input) this is the peripheral eva chip mode setting input pin. a high level is input when the asic in which the NU85ET has been incorporated is used as a peripheral eva chip. (11) ifieva (input) this is the interrupt controller (intc) selection input pin. the intc to be used is set as follows according to the level input to this pin. ? low level: the NU85ET internal intc is used ? high level: the intc connected to the NU85ET externally (external intc) is used (12) ifirobe, ifiropr, ifirase, ifirabe, ifimode3, ifimode2, ifiuswe, fcomb (input) these are nec reserved pins. always input low-level signals. 2.2.14 test mode pins (1) tbi39 to tbi0 (input) these pins constitute an input test bus. (2) tbo34 to tbo0 (output) these pins constitute an output test bus. (3) test (input) this is the test bus control input pin. (4) bunri (input) this is the input pin for selecting normal or test mode. (5) bunriout (output) this is the status output pin that indicates the test mode status. the level of the bunri pin (input) is output as is. (6) phtdo1, phtdo0 (input) these pins are the peripheral macro test input pins. (7) tesen (output) this is the enable output pin for setting peripheral macros to test mode. (8) vptclk (output) this is the clock output pin for peripheral macro tests.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 50 (9) phtdin1, phtdin0 (output) these are the peripheral macro test output pins. (10) vpresz (output) this is the pin from which reset signals are output to the peripheral macros (including the user logic). a signal is output from this pin via the reset mask circuit of the dcu. this pin is used to input a reset signal to the NU85ET and peripheral macro when a forcible reset is executed by the debugger. caution the vpresz signal is the reset signal for the peripheral macros in normal operation mode as well as test mode. (11) phtest (output) this is the pin from which signals indicating the peripheral test mode status are output. (12) tmode1, tmode0, tbredz (output) these are nec reserved pins. leave them open.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 51 2.3 recommended connection of unused pins (1/2) pin name i/o recommended connection vpa13 to vpa0, vpdo15 to vpdo0, vpwrite, vpstb, vplock, vpubenz, vpdv output leave open. vpdi15 to vpdi0 note , vpretr note input input low level. npb pins vpdact input input high level. vareq input input low level. vaack, vapreq, vbdo31 to vbdo0, vma27 to vma0, vmttyp1, vmttyp0, vmstz, vmbenz3 to vmbenz0, vmsize1, vmsize0, vmwrite, vmlock, vmctyp2 to vmctyp0, vmseq2 to vmseq0, vmbstr, vdselpz, vswait, vslast, vsahld, vbdc, vbdv, vdcsz7 to vdcsz0 output leave open. vbdi31 to vbdi0 note , vmwait note , vmlast note , vmahld note , vsa13 to vsa0 note , vswrite, vslock input input low level. vsb pins vsstz, vsbenz1, vsselpz input input high level. resetz, vbclk input ? cgrel input input low level. clkb1, swstoprq, hwstoprq, stprq output leave open. system control pins stopz, stpak input input high level. idmastp, dmarq3 to dmarq0 input input low level. dmac pins dmtco3 to dmtco0, dmactv3 to dmactv0 output leave open. intc pins nmi2 to nmi0, int63 to int0 input input low level. iroma19 to iroma2, iromen, iromcs, iromia, iromae output leave open. iromz31 to iromz0 input input high level. vfb pins iromwt input input low level. irama27 to irama2, iraoz31 to iraoz0, iramen, iramwr3 to iramwr0, iramrwb output leave open. iramz31 to iramz0 input input high level. vdb pins iramwt input input low level. ibdrrq, i bea25 to ibea2, ibbtft, iiaack, iidlef, iiedi31 to iiedi0 input input low level. instruction cache pins ibaack, ib drdy, ibdle3 to ibdle0, ibedi31 to ibedi0, iidrrq, iiea25 to iiea2, iibtft, iircan, bcunch output leave open. iddarq, idaack, irrsa, idretr, idunch, ides, iddrdy output leave open. iddrrq, iddwrq, idseq4, idseq2, idrrdy, idhum, idea27 to idea0 input input low level. data cache pins ided31 to ided0 i/o leave open. note clamp to low level via a buffer.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 52 (2/2) pin name i/o recommended connection eintlv6 to eintlv0, eintrq input input low level. external intc pins eintak, eclrip output leave open. ddo, trcclk, trcdata3 to trcdata0, trcend, idbr2 to idbr0, evttrg, trg1, trg0, dcresz, dcwait, exhlt, ddoout, ddoenb, tapsm3 to tapsm0, dbresz, resmk, mskstp, msknmi2 to msknmi0, mskhrq, dbrdy output leave open. drstz, dbint input input low level. dck, dms, ddi, mwait input input high level. dcu pins romtype input input low level or high level. evastb, evdstb, evirel, evclrip, evintak input input low level. evad15 to evad0, evlkrt i/o leave open. peripheral eva chip mode pins evien, evoen, evintrq, evintlv6 to evintlv0 output leave open. ifirome, ifira64, ifira32, ifira16, ifimaen, ifid256, ifinsz1, ifinsz0, ifieva input ? ifiunch1 input input high level. ifirob2, ifiwrth, ifiunch0 input input low level or high level. operation mode setting pins pheva, ifirobe, ifiropr, ifirase, ifirabe, ifimode3, ifimode2, ifiuswe, fcomb input input low level. tbi39 to tbi0 input tbo34 to tbo0 output refer to the various cell-based ic family user?s manuals. test, bunri input ? phtdo1 note , phtdo0 note input input low level. test mode pins bunriout, t esen, vptclk, phtdin1, phtdin0, vpresz, phtest, tmode1, tmode0, tbredz output leave open. note clamp to low level via a buffer.
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 53 2.4 pin status the following table shows the status in each operating mode of the pins that have output functions. table 2-12. pin status in each operating mode (1/4) pin status pin name reset note software stop mode hardware stop mode halt mode standby test mode unit test mode vpa13 to vpa0 undefined retained retained operates undefined operates vpdo15 to vpdo0 undefined retained retained operates undefined operates vpwrite undefined retained retained operates undefined operates vpstb l l l operates undefined operates vplock undefined retained retained operates undefined operates vpubenz undefined retained retained operates undefined operates npb pins vpdv undefined retained retained operates undefined operates vaack l retained retained operates undefined operates vapreq l retained retained operates undefined operates vbdo31 to vbdo0 l retained retained operates undefined operates vma27 to vma0 l retained retained operates undefined operates vmttyp1, vmttyp0 l retained retained operates undefined operates vmstz h retained retained operates undefined operates vmbenz3 to vmbenz0 h retained retained operates undefined operates vmsize1, vmsize0 l retained retained operates undefined operates vmwrite l retained retained operates undefined operates vmlock l retained retained operates undefined operates vmctyp2 to vmctyp0 undefined retained retained operates undefined operates vmseq2 to vmseq0 l retained retained operates undefined operates vmbstr l retained retained operates undefined operates vdselpz h retained retained operates undefined operates vswait l retained retained operates undefined operates vslast l retained retained operates undefined operates vsb pins vsahld l retained retained operates undefined operates note when a low level is input to the resetz pin and an external clock is input to the vbclk pin. remark l: low-level output h: high-level output retained: retains prior status
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 54 table 2-12. pin status in each operating mode (2/4) pin status pin name reset note software stop mode hardware stop mode halt mode standby test mode unit test mode vbdc l l l operates undefined operates vbdv l l l operates undefined operates vsb pins vdcsz7 to vdcsz0 h retained retained operates undefined operates clkb1 outputs contents of vbclk input l outputs test clock swstoprq l h l l undefined undefined hwstoprq l l h l undefined undefined system control pins stprq l h h l undefined undefined dmtco3 to dmtco0 l l l operates undefined undefined dmac pins dmactv3 to dmactv0 l l l operates undefined undefined iroma19 to iroma2 undefined retained retained retained undefined operates iromen l l l l undefined operates iromcs l l l l undefined operates iromia h undefined undefined undefined undefined operates vfb pins iromae undefined undefined undefined undefined undefined operates irama27 to irama2 undefined undefined undefined operates undefined operates iraoz31 to iraoz0 undefined undefined undefined operates undefined operates iramen l l l operates undefined operates iramwr3 to iramwr0 l l l operates undefined operates vdb pins iramrwb undefined undefined undefined operates undefined operates ibaack l l l l undefined operates ibdrdy l l l l undefined operates ibdle3 to ibdle0 l l l l undefined operates ibedi31 to ibedi0 undefined undefined undefined undefined undefined operates iidrrq l l l l undefined operates iiea25 to iiea2 undefined undefined undefined undefined undefined operates instruction cache pins iibtft undefined undefined undefined undefined undefined operates note when a low level is input to the resetz pin and an external clock is input to the vbclk pin. remark l: low-level output h: high-level output retained: retains prior status
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 55 table 2-12. pin status in each operating mode (3/4) pin status pin name reset note 1 software stop mode hardware stop mode halt mode standby test mode unit test mode iircan undefined undefined undefined undefined undefined operates instruction cache pins bcunch l l l l undefined operates iddarq l l l l undefined operates idaack l l l l undefined operates irrsa l undefined undefined undefined undefined operates idretr l l l l undefined operates idunch undefined undefined undefined undefined undefined operates ides undefined undefined undefined undefined undefined operates iddrdy l l l l undefined operates data cache pins ided31 to ided0 undefined undefined undefined undefined undefined operates eintak l l l l undefined undefined external intc pins eclrip l l l l undefined undefined ddo l/operates l/operates l/operates l/operates l/operates l/operates trcclk l/operates l/operates l/operates l/operates l/operates l/operates trcdata3 to trcdata0 h/operates h/operates h/operates h/operates h/operates h/operates trcend h/operates h/operates h/operates h/operates h/operates h/operates idbr2 to idbr0 l retained retained retained undefined undefined evttrg l/operates l/operates l/operates l/operates l/operates l/operates trg1, trg0 l l l l undefined undefined dcresz l h h h undefined undefined dcwait outputs contents of mwait input exhlt l l l h undefined undefined ddoout l/operates l/operates l/operates l/operates l/operates l/operates ddoenb l/operates l/operates l/operates l/operates l/operates l/operates tapsm3 to tapsm0 h/operates h/operates h/operates h/operates h/operates h/operates dbresz h/operates h/operates h/operates h/operates h/operates h/operates resmk l/operates l/operates l/operates l/operates l/operates l/operates mskstp l/operates l/operates l/operates l/operates l/operates l/operates dcu pins note 2 msknmi2 to msknmi0 l/operates l/operates l/operates l/operates l/operates l/operates notes 1. when a low level is input to the resetz pin and an external clock is input to the vbclk pin. 2. the status when a low level is input to the drstz pin is shown on the left of the slash (/), and the status when a high level is input to the drstz pin is shown on the right of the slash. remark l: low-level output h: high-level output retained: retains prior status
chapter 2 pin functions preliminary user?s manual a15015ej3v0um 56 table 2-12. pin status in each operating mode (4/4) pin status pin name reset note 1 software stop mode hardware stop mode halt mode standby test mode unit test mode mskhrq l/operates l/operates l/operates l/operates l/operates l/operates dcu pins note 2 dbrdy l/operates l/operates l/operates l/operates l/operates l/operates evien undefined l l l undefined undefined evoen undefined l l l undefined undefined evintrq l retained retained operates undefined undefined evintlv6 to evintlv0 undefined retained retained operates undefined undefined evad15 to evad0 undefined retained retained undefined undefined undefined peripheral evaluation chip mode pins evlkrt undefined retained retained undefined undefined undefined tbo34 to tbo0 hi-z hi-z hi-z hi-z hi-z operates bunriout l l l l h h tesen l l l l l operates vptclk l l l l l operates phtdin1, phtdin0 l l l l l operates vpresz l h h h undefined undefined phtest l l l l l operates tmode1, tmode0 l l l l l operates test mode pins tbredz h h h h h operates notes 1. when a low level is input to the resetz pin and an external clock is input to the vbclk pin. 2. the status when a low level is input to the drstz pin is shown on the left of the slash (/), and the status when a high level is input to the drstz pin is shown on the right of the slash. remark l: low-level output h: high-level output retained: retains prior status hi-z: high-impedance
preliminary user?s manual a15015ej3v0um 57 chapter 3 cpu the cpu is based on a risc architecture and executes almost all instructions in one clock cycle due to its five- stage pipeline control. 3.1 features ? advanced 32-bit architecture for embedded control  number of instructions: 83  number of 32-bit general-purpose registers: 32  load/store instructions having long/short format  three-operand instructions  five-stage pipeline structure with one-clock pitch  register/flag hazard interlock supported by hardware  memory space program area: 64 mb linear address space data area: 4 gb linear address space ? instruction set suited to various application fields  saturated calculation instructions  bit manipulation instructions (set, clear, not, test)  multiplication can be performed in 1 or 2 clocks due to on-chip hardware multiplier 16 bits 16 bits 32 bits 32 bits 32 bits 32 bits or 64 bits
chapter 3 cpu preliminary user?s manual a15015ej3v0um 58 3.2 registers the cpu registers can be classified into program registers, which are used by programs, and system registers, which are used to control the execution environment. all registers are 32-bit registers. figure 3-1. list of cpu registers (a) program registers r0 (zero register) r1 (assembler-reserved register) r2 r3 (stack pointer (sp)) r4 (global pointer (gp)) r5 (text pointer (tp)) r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 (element pointer (ep)) r31 (link pointer (lp)) pc (program counter) 0 31 (b) system registers eipc (register for saving status when interrupt occurs) eipsw (register for saving status when interrupt occurs) fepc (register for saving status when nmi occurs) fepsw (register for saving status when nmi occurs) ecr (interrupt source register) psw (program status word) ctpc (register for saving status when callt is executed) ctpsw (register for saving status when callt is executed) dbpc (register for saving status when exception is trapped) dbpsw (register for saving status when exception is trapped) ctbp (callt base pointer) 0 31
chapter 3 cpu preliminary user?s manual a15015ej3v0um 59 3.2.1 program registers the program registers include the general-purpose registers (r0 to r31) and the program counter (pc). table 3-1. list of program registers program register name function r0 zero register (always holds zero) r1 assembler-reserved register (used as a working register for address generation) r2 address/data variable register (when this register is not used by the real-time os) r3 stack pointer (used to generate a stack frame when a function is called) r4 global pointer (used to access a global variable of the data area) r5 text pointer (used as the register indicating the beginning of the text area (area for locating program code)) r6 to r29 registers for address/data variables r30 element pointer (used as the base pointer for address generation when accessing memory) general-purpose register r31 link pointer (used when the compiler calls a function) program counter pc holds instruction address during program execution remark for detailed explanations of r1, r3 to r5, and r31, which are used by the assembler or c compiler, refer to the c compiler package (ca850) user?s manual . (1) general-purpose registers the 32 registers r0 to r31 are provided as general-purpose registers. all of these registers can be used for data variables or address variables. however, take note of the following points when using the r0 to r5, r30, and r31 registers. (a) r0, r30 these registers are implicitly used by instructions. r0, which is a register that always holds 0, is used by operations that use 0, or in 0-offset addressing. r30 is used as a base pointer when accessing memory by the sld and sst instructions. (b) r1, r3 to r5, r31 these registers are implicitly used by the assembler and c compiler. the contents of these registers must be saved before they are used so that the contents are not destroyed, and the original contents must be returned after use. (c) r2 this register may be used by the real-time os. when not being used by the real-time os, r2 can be used as an address variable or data variable register.
chapter 3 cpu preliminary user?s manual a15015ej3v0um 60 (2) program counter this register holds the instruction address during program execution. the lower 26 bits are valid, and bits 31 to 26 are reserved for future function expansion (fixed at 0). if a carry from bit 25 to bit 26 occurs, it is ignored. also, bit 0 is fixed at 0, and no branching to an odd address can be performed. figure 3-2. program counter (pc) 31 26 25 10 pc 000000 instruction address during program execution 0 after reset 00000000h
chapter 3 cpu preliminary user?s manual a15015ej3v0um 61 3.2.2 system registers system registers control the status of the cpu and hold interrupt information. to read from or write to these system registers, specify the system register number (see table 3-2 ) indicated by the system register load or store instruction (ldsr or stsr instruction). table 3-2. list of system registers whether or not operand can be specified register no. name operation ldsr instruction stsr instruction 0 eipc this register saves the value of the pc when a software exception or interrupt occurs. yes yes 1 eipsw register for saving status when interrupt occurs note this register saves the value of the psw when a software exception or interrupt occurs. yes yes 2 fepc this register saves the value of the pc when a non- maskable interrupt (nmi) occurs. yes yes 3 fepsw register for saving status when nmi occurs this register saves the value of the psw when a non- maskable interrupt (nmi) occurs. yes yes 4 ecr interrupt source register this register holds information about the source when an exception or interrupt occurs. the exception code of a non-maskable interrupt (nmi) is set in the higher 16 bits of this register (fecc). the exception code of an exception or maskable interrupt is set in the lower 16 bits (eicc) (see figure 3-3 ). no yes 5 psw program status word this is a collection of flags indicating the program status (instruction execution result) or cpu status (see figure 3-4 ). yes yes 16 ctpc this register saves the value of the pc when a callt instruction is executed. yes yes 17 ctpsw register for saving status when callt is executed this register saves the value of the psw when a callt instruction is executed. yes yes 18 dbpc this register saves the value of the pc when an exception trap is generated due to the detection of an illegal instruction code. no yes 19 dbpsw register for saving status when exception is trapped this register saves the value of the psw when an exception trap is generated due to the detection of an illegal instruction code. no yes 20 ctbp callt base pointer this is used to specify the table address or generate the target address. yes yes 6 to 15, 21 to 31 reserved numbers for future function expansion (if these are accessed, operation is not guaranteed). no no note since there is only one set of these registers, their contents must be saved by the program when multiple interrupts are permitted. remark yes: access enabled no: access disabled
chapter 3 cpu preliminary user?s manual a15015ej3v0um 62 caution when interrupt servicing is performed and control is returned by the reti instruction after bit 0 of the eipc, fepc, or ctpc had been set (1) by the ldsr instruction, bit 0 is ignored (because bit 0 of the pc is fixed at 0). when setting a value in eipc, fepc, or ctpc, set an even value (bit 0 = 0) as long as there is no specific reason not to. figure 3-3. interrupt source register (ecr) 31 16 15 0 ecr fecc eicc after reset 00000000h bit position bit name function 31 to 16 fecc exception code of non-maskable interrupt (nmi) (see table 8-1 interrupt/exception list .) 15 to 0 eicc exception code of exception or maskable interrupt (see table 8-1 interrupt/exception list .)
chapter 3 cpu preliminary user?s manual a15015ej3v0um 63 figure 3-4. program status word (psw) 31 876543210 psw 000000000000000000000000 np ep id sat cy ov sz after reset 00000020h bit position bit name function 7 np indicates that non-maskable interrupt servicing is in progress. when a non-maskable interrupt is acknowledged, this flag is set (1) to disable multiple interrupts. 0: non-maskable interrupt servicing is not in progress 1: non-maskable interrupt servicing is in progress 6 ep indicates that exception processing is in progress. this flag is set (1) when an exception is generated. interrupt requests are acknowledged even if this bit is set. 0: exception processing is not in progress 1: exception processing is in progress 5 id indicates whether or not maskable interrupt requests can be acknowledged. 0: interrupts are enabled 1: interrupts are disabled 4 sat indicates that the calculation result of a saturated calculation processing instruction overflowed and the calculation result is saturated. this flag, which is called the saturation flag, is set (1) when the calculation result of a saturated calculation instruction is saturated, and it is not cleared (0) even if the calculation results of subsequent instructions are not saturated. when this flag is cleared (0), data is loaded in the psw. this bit is neither set (1) nor cleared (0) by a general arithmetic calculation. 0: it is not saturated 1: it is saturated 3 cy indicates whether or not a carry or borrow occurred in the calculation result. 0: no carry or borrow occurred 1: a carry or borrow occurred 2 ov indicates whether or not an overflow occurred during the calculation. 0: no overflow occurred 1: an overflow occurred 1 s indicates whether or not the calculation result is negative. 0: the calculation result is positive or zero 1: the calculation result is negative 0 z indicates whether or not the calculation result is zero. 0: the calculation result is not zero 1: the calculation result is zero
chapter 3 cpu preliminary user?s manual a15015ej3v0um 64 3.3 address space the cpu of the NU85ET supports a linear address space with a maximum size of 4 gb. memory and i/o are located in this address space (memory mapped i/o method). figure 3-5. address space data area (4 gb linear) 00000000h 03ffffffh 04000000h ffffffffh program area (64 mb linear) address space
chapter 3 cpu preliminary user?s manual a15015ej3v0um 65 3.3.1 program area for instruction addressing, the cpu of the NU85ET supports a linear address space (program area) with a maximum size of 64 mb. figure 3-6. program area peripheral i/o area (4 kb) ram area (4, 12, 28, or 60 kb) 3ffffffh 3fff000h 3ffefffh rom area note (1 mb) 00fffffh 0100000h 0000000h 64 mb external memory area note when a low-level signal is input to the ifirome pin, this is also used as the external memory area. when a high-level signal is input to the ifirob2 pin, this is also used as the external memory area, and the rom area is located in the 1 mb area starting at address 0100000h.
chapter 3 cpu preliminary user?s manual a15015ej3v0um 66 3.3.2 data area for operand addressing (data access), the cpu of the NU85ET supports a linear address space (data area) with a maximum size of 4 gb. the rom, ram, and peripheral i/o areas are each located in 64 mb or 256 mb address spaces. the size setting is selected according to the input level to the ifid256 pin. (1) 64 mb mode when a low-level signal is input to the ifid256 pin, the data area is set to 64 mb mode. in this mode, the 64 mb physical address space can be viewed as 64 images in the 4 gb address space. that is, the same 64 mb physical address space is accessed regardless of the values of bits 31 to 26 of the cpu address. figure 3-7. data area (64 mb mode) image data area (4 gb) image image 00000000h 03ffffffh 04000000h ffffffffh peripheral i/o area (4 kb) ram area (4, 12, 28, or 60 kb) 3ffffffh 3fff000h 3ffefffh rom area note (1 mb) 00fffffh 0100000h 0000000h program area (64 mb) external memory area ? image note when a low-level signal is input to the ifirome pin, this is also used as the external memory area. when a high-level signal is input to the ifirob2 pin, this is also used as the external memory area, and the rom area is located in the 1 mb area starting at address 0100000h.
chapter 3 cpu preliminary user?s manual a15015ej3v0um 67 (2) 256 mb mode when a high-level signal is input to the ifid256 pin, the data area is set to 256 mb mode. in this mode, the 256 mb physical address space can be viewed as 16 images in the 4 gb address space. that is, the same 256 mb physical address space is accessed regardless of the values of bits 31 to 28 of the cpu address. figure 3-8. data area (256 mb mode) peripheral i/o area (4 kb) ram area (4, 12, 28, or 60 kb) 256 mb external memory area same area note 2 ffff000h fffefffh image 4 gb image image image ? 00000000h 0fffffffh 10000000h ffffffffh fffffffh 00fffffh 0100000h 0000000h 3ffffffh 4000000h 3fff000h 3ffefffh access prohibited area ram area (4, 12, 28, or 60 kb) external memory area rom area note 1 (1 mb) notes 1. when a low-level signal is input to the ifirome pin, this is also used as the external memory area. when a high-level signal is input to the ifirob2 pin, this is also used as the external memory area, and the rom area is located in the 1 mb area starting at address 0100000h. 2. when data is written to the ram area at address fffefffh and below in 256 mb mode, data having the same contents is also written to the area at address 3ffefffh and below, which is indicated by ?same area? in the figure. the contents of these areas are linked (a memory access is performed from the ram area at address 3ffefffh and below). caution addresses 3fff000h to 3ffffffh are an access prohibited area. the operation is not guaranteed when that area is accessed.
chapter 3 cpu preliminary user?s manual a15015ej3v0um 68 3.4 areas 3.4.1 rom area if a high level is input to the ifirome pin, the area of rom that can be accessed when rom is connected to the vfb is set. (1) rom relocation function a 1 mb area at addresses 00000000h to 000fffffh or addresses 00100000h to 001fffffh is reserved as the rom area. the area where it is to be located is selected according to the level input to the ifirob2 pin. (2) interrupt/exception table the NU85ET increases the interrupt response speed by assigning fixed jump destination addresses corresponding to interrupts or exceptions. this set of jump destination addresses is called the interrupt/exception table and is located at address 00000000h and following. when an interrupt/exception request is acknowledged, processing jumps to the jump destination address and the program that is written in memory beginning at that address is executed. remark when address 00000000h is set in the external memory area, prepare the jump destination address for jumping to the reset routine at address 00000000h of the external memory. figure 3-9. rom area (a) when ifirob2 = low level 00000000h 000fffffh 00100000h interrupt/exception table rom area external memory area (b) when ifirob2 = high level 00000000h 000fffffh 00100000h interrupt/exception table 001fffffh 00200000h external memory area rom area external memory area
chapter 3 cpu preliminary user?s manual a15015ej3v0um 69 table 3-3. interrupt/exception table (1/2) starting address interrupt/exception source starting address interrupt/exception source starting address interrupt/exception source 00000000h reset 00000250h int29 00000490h int65 00000010h nmi0 00000260h int30 000004a0h int66 00000020h nmi1 00000270h int31 000004b0h int67 00000030h nmi2 00000280h int32 000004c0h int68 00000040h trap0n (n = 0 to fh) 00000290h int33 000004d0h int69 00000050h trap1n (n = 0 to fh) 000002a0h int34 000004e0h int70 00000060h ilgop 000002b0h int35 000004f0h int71 00000080h int0 000002c0h int36 00000500h int72 00000090h int1 000002d0h int37 00000510h int73 000000a0h int2 000002e0h int38 00000520h int74 000000b0h int3 000002f0h int39 00000530h int75 000000c0h int4 00000300h int40 00000540h int76 000000d0h int5 00000310h int41 00000550h int77 000000e0h int6 00000320h int42 00000560h int78 000000f0h int7 00000330h int43 00000570h int79 00000100h int8 00000340h int44 00000580h int80 00000110h int9 00000350h int45 00000590h int81 00000120h int10 00000360h int46 000005a0h int82 00000130h int11 00000370h int47 000005b0h int83 00000140h int12 00000380h int48 000005c0h int84 00000150h int13 00000390h int49 000005d0h int85 00000160h int14 000003a0h int50 000005e0h int86 00000170h int15 000003b0h int51 000005f0h int87 00000180h int16 000003c0h int52 00000600h int88 00000190h int17 000003d0h int53 00000610h int89 000001a0h int18 000003e0h int54 00000620h int90 000001b0h int19 000003f0h int55 00000630h int91 000001c0h int20 00000400h int56 00000640h int92 000001d0h int21 00000410h int57 00000650h int93 000001e0h int22 00000420h int58 00000660h int94 000001f0h int23 00000430h int59 00000670h int95 00000200h int24 00000440h int60 00000680h int96 00000210h int25 00000450h int61 00000690h int97 00000220h int26 00000460h int62 000006a0h int98 00000230h int27 00000470h int63 000006b0h int99 00000240h int28 00000480h int64 000006c0h int100 remark for the sources of interrupts or exceptions, see table 8-1 interrupt/exception list .
chapter 3 cpu preliminary user?s manual a15015ej3v0um 70 table 3-3. interrupt/exception table (2/2) starting address interrupt/exception source starting address interrupt/exception source starting address interrupt/exception source 000006d0h int101 00000730h int107 00000790h int113 000006e0h int102 00000740h int108 000007a0h int114 000006f0h int103 00000750h int109 000007b0h int115 00000700h int104 00000760h int110 000007c0h int116 00000710h int105 00000770h int111 ?? 00000720h int106 00000780h int112 ?? remark for the sources of interrupts or exceptions, see table 8-1 interrupt/exception list .
chapter 3 cpu preliminary user?s manual a15015ej3v0um 71 3.4.2 ram area in 64 mb mode, the area at address 3ffefffh and below is reserved, and in 256 mb mode, the area at address fffefffh and below is reserved as the area for ram connected to the vdb. the size of the ram area, which can be selected from among 4 kb, 12 kb, 28 kb, and 60 kb, is set according to the levels input to the ifra64, ifra32, and ifra16 pins. table 3-4. ram area size settings ifira64 ifira32 ifira16 ram area size 0004 kb 00112 kb 0 1 arbitrary 28 kb 1 arbitrary arbitrary 60 kb remark 0: low-level input 1: high-level input figure 3-10. ram area (a) when 4 kb is selected ram area xffefffh xffe000h (b) when 12 kb is selected ram area xffefffh xffc000h (c) when 28 kb is selected ram area xffefffh xff8000h (d) when 60 kb is selected ram area xffefffh xff0000h set as follows if the size of the ram area to be used is other than 4 kb, 12 kb, 28 kb, or 60 kb.
chapter 3 cpu preliminary user?s manual a15015ej3v0um 72 (a) ram area size = 0 kb (ramless) set the ram area size to 4 kb and handle the vdb pins as indicated in 2.3 recommended connection of unused pins . (b) 0 kb < ram area size < 4 kb set the ram area size to 4 kb and use from the lower side addresses as ram area. (c) 4 kb < ram area size < 12 kb set the ram area size to 12 kb and use from the lower side addresses as ram area. (d) 12 kb < ram area size < 28 kb set the ram area size to 28 kb and use from the lower side addresses as ram area. (e) 28 kb < ram area size < 60 kb set the ram area size to 60 kb and use from the lower side addresses as ram area. (f) 60 kb < ram area size a ram area size exceeding 60 kb cannot be set. example memory map when 8 kb ram is used. ram area xffefffh xffc000h xffe000h xffdfffh the ram area size is set to 12 kb the 8 kb from lower side addresses are ram area 3.4.3 peripheral i/o area in 64 mb mode, the area at address 3ffffffh and below is reserved as a peripheral i/o area. in 256 mb mode, the area at address fffffffh and below is reserved. peripheral i/o registers to which functions have been assigned such as status monitoring or specification of the operating mode of the NU85ET, memory controller (memc), or instruction/data cache are located in this area. for information about assigned registers, see 3.5 peripheral i/o registers . caution user-defined addresses must be assigned to the following areas only (user-usable area); all other addresses are reserved and cannot be used. ? ? ? ? xfff200h to xfff47fh ? ? ? ? xfff520h to xfff7bfh ? ? ? ? xfff800h to xffffffh
chapter 3 cpu preliminary user?s manual a15015ej3v0um 73 figure 3-11. peripheral i/o area peripheral i/o area xfff06fh xfff070h xfff1ffh xfff200h xfff47fh xfff480h reserved area (memc control register) user-usable area xfff4ffh xfff500h reserved area xfff51fh xfff520h xffffffh xfff07fh xfff080h xfff000h xfff05fh xfff060h xffefffh reserved area xfff7ffh xfff800h xfff7bfh xfff7c0h user-usable area xfff100h xfff0ffh reserved area (NU85ETcontrol register) reserved area reserved area (NU85ETcontrol register) reserved area (instruction/data cache control register) xfff900h xfff8ffh xfffa00h xfff9ffh user-usable area remark interrupts are not acknowledged between the store instruction and the subsequent instruction for the shaded area (refer to 8.7 periods when interrupts cannot be acknowledged ). 3.4.4 external memory area access to the external memory area is made using the vdcsz7 to vdcsz0 signals assigned to each bank (see 4.2 memory banks ). the ?programmable peripheral i/o area?, which is independent of the peripheral i/o area, is also assigned to this area (see 4.4 programmable peripheral i/o area selection function ). caution rom, ram, and peripheral i/o areas cannot be accessed as external memory areas.
chapter 3 cpu preliminary user?s manual a15015ej3v0um 74 3.5 peripheral i/o registers (1) only the lower 12 bits of a 32-bit address are used for register address decoding, after being allocated to the 4 kb area of xxxxx000h to xxxxxfffh. (2) the lowest bit of the address is not decoded. therefore, when the register of an odd address (2n + 1 address) is byte-accessed, the register of an even address (2n) will be accessed. (3) although word-accessible registers do not exist in the NU85ET, halfword access using the lower and higher bits (in that order and ignoring the lowest 2) of a word area can be made twice to enable word access. (4) when byte-accessible registers are halfword-accessed, the higher 8 bits become undefined in a read operation, and the lower 8 bits of data are written to a register in a write operation. (5) registers other than those that control the NU85ET are incorporated in each macro (memc, instruction/data cache).
chapter 3 cpu preliminary user?s manual a15015ej3v0um 75 3.5.1 NU85ET control registers (1/4) bit units for manipulation address register name symbol r/w 1 bit 8 bits 16 bits after reset fffff060h chip area select control register 0 csc0 r/w 2c11h fffff062h chip area select control register 1 csc1 r/w 2c11h fffff064h peripheral i/o area select control register bpc r/w 0000h fffff066h bus size configuration register bsc r/w 0000h/ 5555h/ aaaah fffff068h endian configuration register bec r/w 0000h fffff06ah cache configuration register bhc r/w 0000h fffff06eh npb strobe wait control register vswc r/w ? 77h fffff080h dma source address register 0l dsa0l r/w undefined fffff082h dma source address register 0h dsa0h r/w undefined fffff084h dma destination address register 0l dda0l r/w undefined fffff086h dma destination address register 0h dda0h r/w undefined fffff088h dma source address register 1l dsa1l r/w undefined fffff08ah dma source address register 1h dsa1h r/w undefined fffff08ch dma destination address register 1l dda1l r/w undefined fffff08eh dma destination address register 1h dda1h r/w undefined fffff090h dma source address register 2l dsa2l r/w undefined fffff092h dma source address register 2h dsa2h r/w undefined fffff094h dma destination address register 2l dda2l r/w undefined fffff096h dma destination address register 2h dda2h r/w undefined fffff098h dma source address register 3l dsa3l r/w undefined fffff09ah dma source address register 3h dsa3h r/w undefined fffff09ch dma destination address register 3l dda3l r/w undefined fffff09eh dma destination address register 3h dda3h r/w undefined fffff0c0h dma transfer count register 0 dbc0 r/w undefined fffff0c2h dma transfer count register 1 dbc1 r/w undefined fffff0c4h dma transfer count register 2 dbc2 r/w undefined fffff0c6h dma transfer count register 3 dbc3 r/w undefined fffff0d0h dma addressing control register 0 dadc0 r/w 0000h fffff0d2h dma addressing control register 1 dadc1 r/w 0000h fffff0d4h dma addressing control register 2 dadc2 r/w 0000h fffff0d6h dma addressing control register 3 dadc3 r/w 0000h fffff0e0h dma channel control register 0 dchc0 r/w ? 00h fffff0e2h dma channel control register 1 dchc1 r/w ? 00h fffff0e4h dma channel control register 2 dchc2 r/w ? 00h fffff0e6h dma channel control register 3 dchc3 r/w ? 00h fffff0f0h dma disable status register ddis r ? 00h
chapter 3 cpu preliminary user?s manual a15015ej3v0um 76 (2/4) bit units for manipulation address register name symbol r/w 1 bit 8 bits 16 bits after reset fffff0f2h dma restart register drst r/w ? 00h fffff100h interrupt mask register 0 imr0 r/w ffffh fffff100h interrupt mask register 0l imr0l r/w ? ffh fffff101h interrupt mask register 0h imr0h r/w ? ffh fffff102h interrupt mask register 1 imr1 r/w ffffh fffff102h interrupt mask register 1l imr1l r/w ? ffh fffff103h interrupt mask register 1h imr1h r/w ? ffh fffff104h interrupt mask register 2 imr2 r/w ffffh fffff104h interrupt mask register 2l imr2l r/w ? ffh fffff105h interrupt mask register 2h imr2h r/w ? ffh fffff106h interrupt mask register 3 imr3 r/w ffffh fffff106h interrupt mask register 3l imr3l r/w ? ffh fffff107h interrupt mask register 3h imr3h r/w ? ffh fffff110h interrupt control register 0 pic0 r/w ? 47h fffff112h interrupt control register 1 pic1 r/w ? 47h fffff114h interrupt control register 2 pic2 r/w ? 47h fffff116h interrupt control register 3 pic3 r/w ? 47h fffff118h interrupt control register 4 pic4 r/w ? 47h fffff11ah interrupt control register 5 pic5 r/w ? 47h fffff11ch interrupt control register 6 pic6 r/w ? 47h fffff11eh interrupt control register 7 pic7 r/w ? 47h fffff120h interrupt control register 8 pic8 r/w ? 47h fffff122h interrupt control register 9 pic9 r/w ? 47h fffff124h interrupt control register 10 pic10 r/w ? 47h fffff126h interrupt control register 11 pic11 r/w ? 47h fffff128h interrupt control register 12 pic12 r/w ? 47h fffff12ah interrupt control register 13 pic13 r/w ? 47h fffff12ch interrupt control register 14 pic14 r/w ? 47h fffff12eh interrupt control register 15 pic15 r/w ? 47h fffff130h interrupt control register 16 pic16 r/w ? 47h fffff132h interrupt control register 17 pic17 r/w ? 47h fffff134h interrupt control register 18 pic18 r/w ? 47h fffff136h interrupt control register 19 pic19 r/w ? 47h fffff138h interrupt control register 20 pic20 r/w ? 47h fffff13ah interrupt control register 21 pic21 r/w ? 47h fffff13ch interrupt control register 22 pic22 r/w ? 47h fffff13eh interrupt control register 23 pic23 r/w ? 47h fffff140h interrupt control register 24 pic24 r/w ? 47h
chapter 3 cpu preliminary user?s manual a15015ej3v0um 77 (3/4) bit units for manipulation address register name symbol r/w 1 bit 8 bits 16 bits after reset fffff142h interrupt control register 25 pic25 r/w ? 47h fffff144h interrupt control register 26 pic26 r/w ? 47h fffff146h interrupt control register 27 pic27 r/w ? 47h fffff148h interrupt control register 28 pic28 r/w ? 47h fffff14ah interrupt control register 29 pic29 r/w ? 47h fffff14ch interrupt control register 30 pic30 r/w ? 47h fffff14eh interrupt control register 31 pic31 r/w ? 47h fffff150h interrupt control register 32 pic32 r/w ? 47h fffff152h interrupt control register 33 pic33 r/w ? 47h fffff154h interrupt control register 34 pic34 r/w ? 47h fffff156h interrupt control register 35 pic35 r/w ? 47h fffff158h interrupt control register 36 pic36 r/w ? 47h fffff15ah interrupt control register 37 pic37 r/w ? 47h fffff15ch interrupt control register 38 pic38 r/w ? 47h fffff15eh interrupt control register 39 pic39 r/w ? 47h fffff160h interrupt control register 40 pic40 r/w ? 47h fffff162h interrupt control register 41 pic41 r/w ? 47h fffff164h interrupt control register 42 pic42 r/w ? 47h fffff166h interrupt control register 43 pic43 r/w ? 47h fffff168h interrupt control register 44 pic44 r/w ? 47h fffff16ah interrupt control register 45 pic45 r/w ? 47h fffff16ch interrupt control register 46 pic46 r/w ? 47h fffff16eh interrupt control register 47 pic47 r/w ? 47h fffff170h interrupt control register 48 pic48 r/w ? 47h fffff172h interrupt control register 49 pic49 r/w ? 47h fffff174h interrupt control register 50 pic50 r/w ? 47h fffff176h interrupt control register 51 pic51 r/w ? 47h fffff178h interrupt control register 52 pic52 r/w ? 47h fffff17ah interrupt control register 53 pic53 r/w ? 47h fffff17ch interrupt control register 54 pic54 r/w ? 47h fffff17eh interrupt control register 55 pic55 r/w ? 47h fffff180h interrupt control register 56 pic56 r/w ? 47h fffff182h interrupt control register 57 pic57 r/w ? 47h fffff184h interrupt control register 58 pic58 r/w ? 47h fffff186h interrupt control register 59 pic59 r/w ? 47h fffff188h interrupt control register 60 pic60 r/w ? 47h fffff18ah interrupt control register 61 pic61 r/w ? 47h fffff18ch interrupt control register 62 pic62 r/w ? 47h
chapter 3 cpu preliminary user?s manual a15015ej3v0um 78 (4/4) bit units for manipulation address register name symbol r/w 1 bit 8 bits 16 bits after reset fffff18eh interrupt control register 63 pic63 r/w ? 47h fffff1fah in-service priority register ispr r ? 00h fffff1fch command register prcmd w undefined fffff1feh power save control register psc r/w ? 00h 3.5.2 memory controller (memc) control registers bit units for manipulation address register name symbol r/w 1 bit 8 bits 16 bits after reset fffff480h bus cycle type configuration register 0 bct0 r/w 8888h/0000h fffff482h bus cycle type configuration register 1 bct1 r/w 8888h/0000h fffff484h data wait control register 0 dwc0 r/w 7777h fffff486h data wait control register 1 dwc1 r/w 7777h fffff488h bus cycle control register bcc r/w ffffh fffff48ah address setting wait control register asc r/w ffffh fffff48ch bus cycle period control register bcp r/w ? 80h/00h fffff49ah page rom configuration register prc r/w 7000h fffff4a0h sdram configuration register 0 scr0 r/w 0000h fffff4a2h sdram refresh control register 0 rfs0 r/w 0000h fffff4a4h sdram configuration register 1 scr1 r/w 0000h fffff4a6h sdram refresh control register 1 rfs1 r/w 0000h fffff4a8h sdram configuration register 2 scr2 r/w 0000h fffff4aah sdram refresh control register 2 rfs2 r/w 0000h fffff4ach sdram configuration register 3 scr3 r/w 0000h fffff4aeh sdram refresh control register 3 rfs3 r/w 0000h fffff4b0h sdram configuration register 4 scr4 r/w 0000h fffff4b2h sdram refresh control register 4 rfs4 r/w 0000h fffff4b4h sdram configuration register 5 scr5 r/w 0000h fffff4b6h sdram refresh control register 5 rfs5 r/w 0000h fffff4b8h sdram configuration register 6 scr6 r/w 0000h fffff4bah sdram refresh control register 6 rfs6 r/w 0000h fffff4bch sdram configuration register 7 scr7 r/w 0000h fffff4beh sdram refresh control register 7 rfs7 r/w 0000h
chapter 3 cpu preliminary user?s manual a15015ej3v0um 79 3.5.3 instruction cache control registers bit units for manipulation address register name symbol r/w 1 bit 8 bits 16 bits after reset fffff070h instruction cache control register icc r/w 0003h note 1 fffff070h instruction cache control register l iccl r/w ? 03h note 2 fffff071h instruction cache control register h icch r/w ? 00h fffff074h instruction cache data configuration register icd r/w undefined notes 1. this value becomes 0003h when the reset signal is active, and tag initialization starts automatically. the value changes to 0000h upon the completion of tag initialization. 2. this value becomes 03h when the reset signal is active, and tag initialization starts automatically. the value changes to 00h upon the completion of tag initialization. 3.5.4 data cache control registers bit units for manipulation address register name symbol r/w 1 bit 8 bits 16 bits after reset fffff078h data cache control register dcc r/w 0003h note fffff07ch data cache data configuration register dcd r/w undefined note this value becomes 0003h when the reset signal is active, and tag initialization starts automatically. the value changes to 0000h upon the completion of tag initialization.
preliminary user?s manual a15015ej3v0um 80 chapter 4 bcu the bus control unit (bcu), which operates as a bus master on the vsb, controls the on-chip bus bridge (bbr), test interface control unit (tic), and peripheral macros (bus slaves) such as the external memory controller (memc) connected to the vsb. 4.1 features ? 32-bit independent i/o separated data bus ? one bus clock transfer between consecutive clock falling edges ? data transfer in 8-bit, 16-bit, or 32-bit units on a 32-bit bus by means of the bus size function ? bus arbitration for a multi-master system ? programmable chip select function ? programmable peripheral i/o area select function ? endian setting function 4.2 memory banks the data area is subdivided into multiple units called banks. the bcu makes bus size, endian, and cache settings in terms of units called ?csn area?, which are arbitrary combinations of banks. ?csn area? settings are made based on the vdcszn signals corresponding to each bank (n = 7 to 0).
chapter 4 bcu preliminary user?s manual a15015ej3v0um 81 (1) memory banks for 64 mb mode the 64 mb data area is subdivided into memory banks with sizes of 2 mb, 4 mb, and 8 mb. bank 0 (2 mb) 01fffffh 0200000h 0000000h bank 1 (2 mb) 03fffffh 0400000h bank 2 (2 mb) 05fffffh 0600000h bank 3 (2 mb) 07fffffh 0800000h bank 4 (4 mb) 0bfffffh 0c00000h bank 5 (4 mb) 0ffffffh 1000000h bank 6 (8 mb) 17fffffh 1800000h bank 7 (8 mb) 1ffffffh 2000000h bank 8 (8 mb) 27fffffh 2800000h bank 9 (8 mb) 2ffffffh 3000000h bank 10 (4 mb) 33fffffh 3400000h bank 11 (4 mb) 37fffffh 3800000h bank 12 (2 mb) 39fffffh 3a00000h bank 13 (2 mb) 3bfffffh 3c00000h bank 14 (2 mb) 3dfffffh 3e00000h bank 15 (2 mb) 3ffffffh peripheral i/o area (4 kb) ram area (4 k, 12 k, 28 k, or 60 kb) external memory area 3fff000h 3ffffffh 3ffefffh 3e00000h external memory area (1 mb) rom area note (1 mb) [when a high-level signal is input to the ifirome pin] 0100000h 01fffffh 00fffffh 0000000h external memory area 64 mb note when a low-level signal is input to the ifirome pin, this is also used as the external memory area.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 82 (2) memory banks for 256 mb mode the 256 mb data area is subdivided into four areas (area 0 to area 3), each of which contain memory banks of size 2 mb. bank 12 (2 mb) peripheral i/o area (4 kb) ram area (4 k, 12 k, 28 k, or 60 kb) area 3 01fffffh 0200000h 0000000h 03fffffh 0400000h 05fffffh 0600000h 07fffffh 0800000h 3ffffffh 4000000h 7ffffffh 8000000h bffffffh c000000h f7fffffh f800000h f9fffffh fa00000h fbfffffh fc00000h fdfffffh fe00000h fffffffh ffff000h fffffffh fffefffh fe00000h 0100000h 01fffffh 00fffffh 0000000h external memory area external memory area (1 mb) rom area note 2 (1 mb) [when a high-level signal is input to the ifirome pin] 256 mb external memory area 3ffefffh 3fff000h bank 13 (2 mb) bank 14 (2 mb) bank 15 (2 mb) area 2 area 1 area 0 bank 0 (2 mb) bank 1 (2 mb) bank 2 (2 mb) bank 3 (2 mb) same area note 1 notes 1. see figure 3-8 data area (256 mb mode) . notes 2. when a low-level signal is input to the ifirome pin, this is also used as the external memory area.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 83 4.3 programmable chip select function the vdcszn signals corresponding to each bank of memory are set and the data area is subdivided into multiple csn areas according to chip area select control registers 0 and 1 (csc0 and csc1) (n = 7 to 0). the csc0 and csc1 registers can be read or written in 16-bit units. when the vdcszn signals for the same bank overlap due to the csc0 and csc1 register settings, the signal prioritization is as follows. ? vdcsz0 > vdcsz2 > vdcsz1 > vdcsz3 ? vdcsz7 > vdcsz5 > vdcsz6 > vdcsz4 figure 4-1. chip area select control register 0 (csc0) 1514131211109876543210 csc0 cs 33 cs 32 cs 31 cs 30 cs 23 cs 22 cs 21 cs 20 cs 13 cs 12 cs 11 cs 10 cs 03 cs 02 cs 01 cs 00 address fffff060h after reset 2c11h bit position bit name function when each bit is set (1), the vdcszn signal becomes active if the condition within parentheses holds. vdcszn signal that becomes active bit name 64 mb mode 256 mb mode cs00 vdcsz0 (when accessing bank 0) cs01 vdcsz0 (when accessing bank 1) cs02 vdcsz0 (when accessing bank 2) cs03 vdcsz0 (when accessing bank 3) cs10 vdcsz1 (when accessing bank 0 or 1) cs11 vdcsz1 (when accessing bank 2 or 3) cs12 vdcsz1 (when accessing bank 4) cs13 vdcsz1 (when accessing bank 5) vdcsz1 (when accessing area 0) (same when each bit is cleared (0)) cs20 vdcsz2 (when accessing bank 0) cs21 vdcsz2 (when accessing bank 1) cs22 vdcsz2 (when accessing bank 2) cs23 vdcsz2 (when accessing bank 3) cs30 vdcsz3 (when accessing bank 0, 1, 2, or 3) cs31 vdcsz3 (when accessing bank 4 or 5) cs32 vdcsz3 (when accessing bank 6) cs33 vdcsz3 (when accessing bank 7) vdcsz3 (when accessing area 1) (same when each bit is cleared (0)) 15 to 0 csn3 to csn0 remark n = 3 to 0
chapter 4 bcu preliminary user?s manual a15015ej3v0um 84 figure 4-2. chip area select control register 1 (csc1) 1514131211109876543210 csc1 cs 43 cs 42 cs 41 cs 40 cs 53 cs 52 cs 51 cs 50 cs 63 cs 62 cs 61 cs 60 cs 73 cs 72 cs 71 cs 70 address fffff062h after reset 2c11h bit position bit name function when each bit is set (1), the vdcszn signal becomes active if the condition within parentheses holds. vdcszn signal that becomes active bit name 64 mb mode 256 mb mode cs40 vdcsz4 (when accessing bank 12, 13, 14, or 15) cs41 vdcsz4 (when accessing bank 10 or 11) cs42 vdcsz4 (when accessing bank 9) cs43 vdcsz4 (when accessing bank 8) vdcsz4 (when accessing area 2) (same when each bit is cleared (0)) cs50 vdcsz5 (when accessing bank 15) cs51 vdcsz5 (when accessing bank 14) cs52 vdcsz5 (when accessing bank 13) cs53 vdcsz5 (when accessing bank 12) cs60 vdcsz6 (when accessing bank 14 or 15) cs61 vdcsz6 (when accessing bank 12 or 13) cs62 vdcsz6 (when accessing bank 11) cs63 vdcsz6 (when accessing bank 10) vdcsz6 (when accessing area 3) (same when each bit is cleared (0)) cs70 vdcsz7 (when accessing bank 15) cs71 vdcsz7 (when accessing bank 14) cs72 vdcsz7 (when accessing bank 13) cs73 vdcsz7 (when accessing bank 12) 15 to 0 csn3 to csn0 remark n = 4 to 7
chapter 4 bcu preliminary user?s manual a15015ej3v0um 85 examples 1. the following figure shows an example of csc0 and csc1 register settings for 64 mb mode and the memory map after the settings are made. figure 4-3. csc0 and csc1 register setting example (64 mb mode) (1/3) (a) csc0 register settings 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1514131211109876543210 csc0 vdcsz0 (when accessing bank 0) vdcszn signals that become active vdcsz0 (when accessing bank 1) vdcsz1 (when accessing bank 0 or 1) notes 1, 2 vdcsz1 (when accessing bank 2 or 3) notes 3, 4 vdcsz1 (when accessing bank 4) vdcsz1 (when accessing bank 5) vdcsz2 (when accessing bank 0) note 1 vdcsz2 (when accessing bank 1) note 2 vdcsz2 (when accessing bank 2) vdcsz2 (when accessing bank 3) vdcsz3 (when accessing bank 0, 1, 2, or 3) notes 1, 2, 3, 4 vdcsz3 (when accessing bank 4 or 5) notes 5, 6 vdcsz3 (when accessing bank 6) vdcsz3 (when accessing bank 7) notes 1. since the high priority signal from the bit 0 setting (vdcsz0) corresponds to bank 0, the setting in bank 0 becomes invalid. 2. since the high priority signal from the bit 1 setting (vdcsz0) corresponds to bank 1, the setting in bank 1 becomes invalid. 3. since the high priority signal from the bit 10 setting (vdcsz2) corresponds to bank 2, the setting in bank 2 becomes invalid. 4. since the high priority signal from the bit 11 setting (vdcsz2) corresponds to bank 3, the setting in bank 3 becomes invalid. 5. since the high priority signal from the bit 6 setting (vdcsz1) corresponds to bank 4, the setting in bank 4 becomes invalid. 6. since the high priority signal from the bit 7 setting (vdcsz1) corresponds to bank 5, the setting in bank 5 becomes invalid.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 86 figure 4-3. csc0 and csc1 register setting example (64 mb mode) (2/3) (b) csc1 register settings 1 1 1 1 0 1 1 1 1 1 1 0 0 1 1 0 1514131211109876543210 csc1 vdcsz7 (when accessing bank 14) vdcszn signals that become active vdcsz7 (when accessing bank 13) vdcsz6 (when accessing bank 12 or 13) note 1 vdcsz6 (when accessing bank 11) vdcsz6 (when accessing bank 10) vdcsz5 (when accessing bank 15) vdcsz5 (when accessing bank 14) note 2 vdcsz5 (when accessing bank 13) note 3 vdcsz4 (when accessing bank 12, 13, 14, or 15) notes 2, 3, 4, 5 vdcsz4 (when accessing bank 10 or 11) notes 6, 7 vdcsz4 (when accessing bank 9) vdcsz4 (when accessing bank 8) notes 1. since the high priority signal from the bit 2 setting (vdcsz7) corresponds to bank 13, only the setting in bank 12 becomes valid. 2. since the high priority signal from the bit 1 setting (vdcsz7) corresponds to bank 14, the setting in bank 14 becomes invalid. 3. since the high priority signal from the bit 2 setting (vdcsz7) corresponds to bank 13, the setting in bank 13 becomes invalid. 4. since the high priority signal from the bit 5 setting (vdcsz6) corresponds to bank 12, the setting in bank 12 becomes invalid. 5. since the high priority signal from the bit 8 setting (vdcsz5) corresponds to bank 15, the setting in bank 15 becomes invalid. 6. since the high priority signal from the bit 7 setting (vdcsz6) corresponds to bank 10, the setting in bank 10 becomes invalid. 7. since the high priority signal from the bit 6 setting (vdcsz6) corresponds to bank 11, the setting in bank 11 becomes invalid.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 87 figure 4-3. csc0 and csc1 register setting example (64 mb mode) (3/3) (c) memory map bank 0 (2m) [vdcsz0] bank 1 (2m) [vdcsz0] bank 2 (2m) [vdcsz2] bank 3 (2m) [vdcsz2] bank 4 (4m) [vdcsz1] bank 5 (4m) [vdcsz1] bank 6 (8m) [vdcsz3] bank 7 (8m) [vdcsz3] bank 8 (8m) [vdcsz4] bank 9 (8m) [vdcsz4] bank 10 (4m) [vdcsz6] bank 11 (4m) [vdcsz6] bank 12 (2m) [vdcsz6] bank 13 (2m) [vdcsz7] bank 14 (2m) [vdcsz7] bank 15 (2m) [vdcsz5] cs7 area cs6 area cs4 area cs3 area cs1 area cs2 area cs0 area cs5 area remark the values within parentheses indicate the size of each bank (unit: bytes). the values within brackets indicate the corresponding vdcszn signal (n = 7 to 0).
chapter 4 bcu preliminary user?s manual a15015ej3v0um 88 examples 2. the following figure shows an example of csc0 and csc1 register settings for 256 mb mode and the memory map after the settings are made. figure 4-4. csc0 and csc1 register setting example (256 mb mode) (1/2) (a) csc0 register settings x x x x 1 1 1 1 x x x x 0 1 0 1 1514131211109876543210 csc0 vdcsz0 (when accessing bank 0) vdcszn signals that become active vdcsz0 (when accessing bank 1) vdcsz1 (when accessing area 0) note 1 vdcsz2 (when accessing bank 0) note 2 vdcsz2 (when accessing bank 1) note 3 vdcsz2 (when accessing bank 2) vdcsz2 (when accessing bank 3) vdcsz3 (when accessing area 1) notes 1. since the high priority signals from the bit 0, 1, 10, and 11 settings (vdcsz0 and vdcsz2) correspond to banks 0 to 3, the setting in banks 0 to 3, which are included in area 0, become invalid. 2. since the high priority signal from the bit 0 setting (vdcsz0) corresponds to bank 0, the setting becomes invalid. 3. since the high priority signal from the bit 1 setting (vdcsz0) corresponds to bank 1, the setting becomes invalid. (b) csc1 register settings x x x x 0 1 1 1 x x x x 0 1 1 0 1514131211109876543210 csc1 vdcsz7 (when accessing bank 14) vdcszn signals that become active vdcsz7 (when accessing bank 13) vdcsz6 (when accessing area 3) note 1 vdcsz5 (when accessing bank 15) vdcsz5 (when accessing bank 14) note 2 vdcsz5 (when accessing bank 13) note 3 vdcsz4 (when accessing area 2) notes 1. since the high priority signals from the bit 1, 2, and 8 settings (vdcsz5 and vdcsz7) correspond to banks 13 to 15, the settings in banks 13 to 15, which are included in area 3, become invalid (since bank 12 has no corresponding vdcszn signal, its setting does not become ineffective). notes 2. since the high priority signal from the bit 1 setting (vdcsz7) corresponds to bank 14, the setting becomes invalid. notes 3. since the high priority signal from the bit 2 setting (vdcsz7) corresponds to bank 13, the setting becomes invalid.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 89 figure 4-4. csc0 and csc1 register setting example (256 mb mode) (2/2) (c) memory map bank 0 (2m) [vdcsz0] bank 1 (2m) [vdcsz0] bank 2 (2m) [vdcsz2] bank 3 (2m) [vdcsz2] (bank 12 (2m)) bank 13 (2m) [vdcsz7] bank 14 (2m) [vdcsz7] bank 15 (2m) [vdcsz5] [vdcsz6] [vdcsz4] [vdcsz1] [vdcsz3] cs7 area cs6 area cs4 area cs3 area cs1 area cs2 area cs0 area cs5 area area 2 area 3 area 1 area 0 remark the values within parentheses indicate the size of each bank (unit: bytes). the values within brackets indicate the corresponding vdcszn signal (n = 7 to 0). 4.4 programmable peripheral i/o area selection function the NU85ET has a 4 kb peripheral i/o area that is allocated in advance in the address space and a 12 kb programmable peripheral i/o area that can be allocated at arbitrary addresses according to register settings. registers for peripheral macros connected to the npb or user logic can be freely located in the programmable peripheral i/o area. caution be sure to allocate the programmable peripheral i/o area to a csn area in which both little endian and instruction/data cache-prohibited settings have been made (n = 7 to 0).
chapter 4 bcu preliminary user?s manual a15015ej3v0um 90 figure 4-5. peripheral i/o area and programmable peripheral i/o area (a) 64 mb mode (b) 256 mb mode (n = yy11b) peripheral i/o area (4 kb) (4 kb) programmable peripheral i/o area (12 kb) fffffffh ffff000h fffefffh 0000000h xxxnfffh xxxm000h 3fff000h 3ffefffh 3ffffffh 3fff000h 3ffefffh xxxnfffh xxxm000h 0000000h same area (m = yy00b) same area same area note peripheral i/o area (4 kb) (4 kb) programmable peripheral i/o area (12 kb) (ram area) (n = yy11b) (m = yy00b) note see figure 3-8 data area (256 mb mode) . remarks 1. xxx: setting according to the pa13 to pa02 bits of the bpc register yy: setting according to the pa01 and pa00 bits of the bpc register 2. since the areas indicated by ?same area? are linked, if data is written in one area, data having the same contents is also written in the other area.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 91 the programmable peripheral i/o area can be used by specifying the higher 14 bits (bit 27 to bit 14) of the starting address in the pa00 to pa13 bits of the peripheral i/o area select control register (bpc) and setting (1) the pa15 bit. the bpc register can be read or written in 16-bit units. the prioritization of the various csn areas selected by the vdcszn signals and the programmable peripheral i/o area is as follows (n = 7 to 0). programmable peripheral i/o area > various csn areas selected by vdcszn signals cautions 1. in 64 mb mode, if the programmable peripheral i/o area overlaps the following areas, the programmable peripheral i/o area becomes invalid. ? ? ? ? peripheral i/o area ? ? ? ? rom area ? ? ? ? ram area 2. in 256 mb mode, if the programmable peripheral i/o area overlaps the following areas, the programmable peripheral i/o area becomes invalid. ? ? ? ? peripheral i/o area ? ? ? ? rom area ? ? ? ? ram area ? ? ? ? the area that is the same as the ram area and that is located at address 3ffefffh and below (see figure 3-8 data area (256 mb mode)) 3. if there are no peripheral macros connected to the npb or user logic, no programmable peripheral i/o area need be set (set the bpc register to its after-reset value). 4. when accessing the programmable peripheral i/o area, the vdcszn signals are all output as inactive (high level) and the vdselpz signal becomes active (low level) (n = 7 to 0). 5. programmable peripheral i/o area address setting is enabled only once. do not change address in the middle of a program. figure 4-6. peripheral i/o area select control register (bpc) 1514131211109876543210 bpc pa 15 0 pa 13 pa 12 pa 11 pa 10 pa 09 pa 08 pa 07 pa 06 pa 05 pa 04 pa 03 pa 02 pa 01 pa 00 address fffff064h after reset 0000h bit position bit name function 15 pa15 sets whether or not the programmable peripheral i/o area can be accessed. 0: it cannot be accessed 1: it can be accessed 13 to 0 pa13 to pa00 specifies bit 27 to bit 14 of the starting address of the programmable peripheral i/o area. (the other bits are fixed at zero.) caution always set bit 14 to 0. if it is set to 1, operation is not guaranteed.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 92 4.5 bus size setting function the bus size setting function uses the bus size configuration register (bsc) to set the vsb data bus size for each csn area selected by the chip select signal (vdcszn) (see figures 4-3 and 4-4 ) (n = 7 to 0). the bsc register can be read or written in 16-bit units. figure 4-7. bus size configuration register (bsc) 1514131211109876543210 bsc bs 71 bs 70 bs 61 bs 60 bs 51 bs 50 bs 41 bs 40 bs 31 bs 30 bs 21 bs 20 bs 11 bs 10 bs 01 bs 00 address fffff066h after reset note bit position bit name function specifies the peripheral macro on the vsb that was located in the csn area and the data bus size. bsn1 bsn0 vsb data bus size 0 0 8 bits 0 1 16 bits 1 0 32 bits 1 1 setting prohibited 15 to 0 bsn1, bsn0 remark n = 7 to 0 note the after-reset value differs as follows according to the levels input to the ifinsz1 and ifinsz0 pins. ifinsz1 ifinsz0 vsb data bus size after-reset value low level low level 32 bits aaaah low level high level 16 bits 5555h high level low level 8 bits 0000h example in a csn area, when the boot rom is 16-bit width and memories in other areas are 32-bit width, start up using 16-bit width in the initial state (input a low level to the ifinsz1 pin and a high level to the ifinsz0 pin) and then switch to 32-bit width via the bsc resister.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 93 4.6 endian setting function 4.6.1 endian configuration register (bec) the endian setting function uses the endian configuration register (bec) to set the endian format of word data within memory for each csn area selected by the chip select signal (vdcszn) (see figures 4-3 and 4-4 ) (n = 7 to 0). the bec register can be read or written in 16-bit units. cautions 1. set the csn area specified as the programmable peripheral i/o area in the little endian format (n = 7 to 0). 2. each of the following areas is fixed to little endian format. setting the big endian format for these areas via the bec register is invalid. ? ? ? ? peripheral i/o area ? ? ? ? rom area ? ? ? ? ram area ? ? ? ? the area that is the same as the ram area and that is located at address 3ffefffh and below (for 256 mb mode) (see figure 3-8 data area (256 mb mode)) ? ? ? ? external memory fetch area (when the vmbstr signal is active) figure 4-8. endian configuration register (bec) 1514131211109876543210 bec 0 be 70 0 be 60 0 be 50 0 be 40 0 be 30 0 be 20 0 be 10 0 be 00 address fffff068h after reset 0000h bit position bit name function sets the endian format of word data in the csn area. ben0 endian format 0 little endian format (see figure 4-9 ) 1 big endian format (see figure 4-10 ) 14, 12, 10, 8, 6, 4, 2, 0 ben0 remark n = 7 to 0 caution always set bits 15, 13, 11, 9, 7, 5, 3, and 1 to 0. if they are set to 1, operation is not guaranteed.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 94 figure 4-9. word data little endian format example 23 16 15 8 (0009h) 31 24 (000bh) 7 0 (0008h) (0006h) (0005h) (0007h) (0004h) (0002h) (0001h) (0003h) (0000h) (000ah) figure 4-10. word data big endian format example 23 16 15 8 (000ah) 31 24 (0008h) 7 0 (000bh) (0005h) (0006h) (0004h) (0007h) (0001h) (0002h) (0000h) (0003h) (0009h) 4.6.2 usage restrictions concerning big endian format with nec development tools (1) when using the debugger (id850) only the memory window display supports the big endian format. (2) when using the compiler (ca850) (a) c language restrictions (i) the following restrictions are attached to variables configured in a big endian space. <1> unions cannot be used. <2> bitfields cannot be used. <3> accesses based on the cast (changed access size) cannot be used. <4> variables with initial values cannot be used. (ii) because the access size may change due to optimization, it is necessary to specify the following optimization suppression options. ? for global optimization sections (opt850)..................-wo, -xtb ? for model-based optimization sections (impr850).....-wi, +arg_reg_opt=off, +stld_trans_opt=off
chapter 4 bcu preliminary user?s manual a15015ej3v0um 95 however, it is unnecessary to specify the above optimization suppression options when not using ?cast? or ?mask/shift? access note . note the condition is that patterns causing the following optimization are not used. it is extremely difficult to perform a perfect check on the user side in a state such as where all the patterns (especially in the model-based optimization section) are mixed together. the above optimization suppression options are therefore recommended. <1> for global optimization section ? 1 bit set using bit or int i; i ^= 1; ? 1 bit clear using bit and i &= ~1; ? 1 bit not using bit xor i ^= 1; ? 1 bit test using bit and if(i & 1); <2> for model-based optimization section usage whereby identical variables are accessed in different sizes ? cast ? mask ? shift example int i, *ip; char c; : : c=*((char*)ip); : : c = 0xff & i; : : i = (i << 24) >> 24; (b) assembly language restrictions area-securing quasi directives that are not byte size (.hword, .word, .float, .shword) cannot be used for variables configured in the big endian space.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 96 4.7 cache configuration the cache configuration register (bhc) is used to set the cache memory configuration for each csn area selected by the chip select signal (vdcszn) (see figures 4-3 and 4-4 ) (n = 7 to 0). the bhc register can be read or written in 16-bit units. cautions 1. be sure to disable the cache for big endian format csn area or csn areas set as the following areas (n = 7 to 0). ? ? ? ? rom area ? ? ? ? ram area ? ? ? ? peripheral i/o area ? ? ? ? programmable peripheral i/o area 2. the instruction/data cache enabled setting (bhn0/bhn1 bit = 1 (set)) is only valid when a low level is being input (cache enabled) to the ifiunch0 or ifiunch1 pin. in other cases, the instruction/data cache enabled setting is invalid even if the bhn0/bhn1 bit is set to 1. 3. when using the data cache, set this register after setting the data cache?s data cache control register (dcc). figure 4-11. cache configuration register (bhc) 1514131211109876543210 bhc bh 71 bh 70 bh 61 bh 60 bh 51 bh 50 bh 41 bh 40 bh 31 bh 30 bh 21 bh 20 bh 11 bh 10 bh 01 bh 00 address fffff06ah after reset 0000h bit position bit name function sets whether or not the data cache located in the csn area can be used. bhn1 data cache setting 0 cache disabled 1 cache enabled 15, 13, 11, 9, 7, 5, 3, 1 bhn1 sets whether or not the instruction cache located in the csn area can be used. bhn0 instruction cache setting 0 cache disabled 1 cache enabled 14, 12, 10, 8, 6, 4, 2, 0 bhn0 remark n = 7 to 0
chapter 4 bcu preliminary user?s manual a15015ej3v0um 97 4.8 bcu-related register setting examples figure 4-12 shows a bpc, bsc, bec, and bhc register setting example, the corresponding settings for each csn area, and the memory map when the data area has been set according to the contents of the example shown in figure 4-3 csc0 and csc1 register setting example (64 mb mode) (n = 7 to 0) . figure 4-12. bpc, bsc, bec, bhc register setting example (1/3) (a) bpc register setting 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1514131211109876543210 bpc programmable peripheral i/o area: can be accessed programmable peripheral i/o area starting address: 2400000h (b) bsc register setting 1 1 0 0 0 1 0 1 0 0 0 0 1 1 0 0 1514131211109876543210 bsc cs0 area: 32 bits cs1 area: 32 bits cs2 area: 8 bits cs3 area: 8 bits cs4 area: 16 bits cs5 area: 16 bits cs6 area: 32 bits cs7 area: 32 bits vsb data bus size of csn area (c) bec register setting 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1514131211109876543210 bec cs0 area: little endian cs1 area: little endian cs2 area: little endian cs3 area: big endian cs4 area: little endian cs5 area: little endian cs6 area: little endian cs7 area: big endian endian format of csn area
chapter 4 bcu preliminary user?s manual a15015ej3v0um 98 figure 4-12. bpc, bsc, bec, bhc register setting example (2/3) (d) bhc register setting 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1514131211109876543210 bhc cs0 area: cache not available cs1 area: cache available cs2 area: cache not available cs3 area: cache not available cs4 area: cache not available cs5 area: cache not available cs6 area: cache not available cs7 area: cache not available instruction cache setting of csn area cs0 area: cache not available cs1 area: cache not available cs2 area: cache available cs3 area: cache not available cs4 area: cache not available cs5 area: cache not available cs6 area: cache not available cs7 area: cache not available data cache setting of csn area (e) settings of each csn area cache setting csn area addresses banks vdcszn signal vsb data bus size (bits) endian format instruction data 0 0000000h to 03fffffh 0, 1 vdcsz0 32 little endian no no 1 0800000h to 0ffffffh 4, 5 vdcsz1 32 little endian yes no 2 0400000h to 07fffffh 2, 3 vdcsz2 8 little endian no yes 3 1000000h to 1ffffffh 6, 7 vdcsz3 8 big endian no no 4 2000000h to 2ffffffh 8, 9 vdcsz4 16 little endian no no 5 3e00000h to 3ffffffh 15 vdcsz5 16 little endian no no 6 3000000h to 39fffffh 10 to 12 vdcsz6 32 little endian no no 7 3a00000h to 3dfffffh 13, 14 vdcsz7 32 big endian no no
chapter 4 bcu preliminary user?s manual a15015ej3v0um 99 figure 4-12. bpc, bsc, bec, bhc register setting example (3/3) (f) memory map bank 0 01fffffh 0200000h 0000000h bank 1 03fffffh 0400000h bank 2 05fffffh 0600000h bank 3 07fffffh 0800000h bank 4 0bfffffh 0c00000h bank 5 0ffffffh 1000000h bank 6 17fffffh 1800000h bank 7 1ffffffh 2000000h bank 9 2ffffffh 3000000h 33fffffh 3400000h bank 11 37fffffh 3800000h bank 12 39fffffh 3a00000h bank 13 3bfffffh 3c00000h bank 14 3dfffffh 3e00000h bank 15 3ffffffh bank 10 programmable peripheral i/o area (12 kb) 2402fffh 2400000h bank 8 27fffffh 2800000h cs0 area cs2 area cs1 area cs3 area cs4 area cs6 area cs7 area cs5 area
chapter 4 bcu preliminary user?s manual a15015ej3v0um 100 4.9 data transfer using vsb 4.9.1 data transfer example this section uses the circuit shown in figure 4-13 to explain the procedure for transferring data between bus masters and bus slaves connected to the vsb. figure 4-13. example of data transfer using vsb intc stbc cpu vdselpz vaack vareq vareq0 vaack0 vaack2 <1> <2> vsb npb vdcsz5 to vdcsz0 NU85ET <4> <3> bus arbiter NU85ET internal (bus master 2) dmac bbr vdcsz7 user logic 1 (bus slave 2) bcu memory controller (memc) (bus slave 0) user logic 0 (bus slave 1) vdcsz6 external circuit (bus master 1) tic (bus master 0) lock <1> the NU85ET grants bus control (bus access right) to only one bus master according to the on-chip bus arbiter (refer to 4.9.6 bus master transition for detail). the bus arbiter arbitrates the bus access right according to the following prioritization. tic (bus master 0) > external circuit (bus master 1) > NU85ET internal (bus master 2) for example, if a bus access right request (vareq) is generated from the tic or an external circuit when the NU85ET internal is operating as the bus master, the NU85ET internal releases the bus. in the figure shown above, the NU85ET internal (bus master 2) receives an acknowledge signal (vaack2: internal signal) from the bus arbiter and has the bus access right (a bus access right request signal is always being output from the NU85ET internal to the bus arbiter). <2> bus master 2, which has the bus access right, begins the data transfer to the vsb. <3> the bcu selects the bus slave by generating a chip select signal (vdcszn) corresponding to each bank of the data area according to the programmable chip select function (n = 7 to 0). in the figure shown above, memc (bus slave 0) is selected by the vdcsz5 to vdcsz0 signals. <4> the selected bus slave 0 returns a transfer response to bus master 2, and the data transfer begins.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 101 4.9.2 control signals output by bus master when the NU85ET operates as the bus master, the contents of the transfer that is currently being executed are indicated by outputting the various control signals indicated below (when the NU85ET operates as a bus slave, the external bus master performs output, and this data is input to the NU85ET as the vsxxxx signal). however, the vxwait, vxahld, and vxlast signals are output by the bus slave and input by the bus master (the signal names on the bus master side are vmwait, vmahld, and vmlast, and the signal names on the bus slave side are vswait, vsahld, and vslast). (1) transfer type when the transfer begins, the bus master outputs the vmttyp1 and vmttyp0 signals to indicate the transfer type. table 4-1. vmttyp1 and vmttyp0 signals vmttyp1 vmttyp0 transfer type 0 0 address-only transfer (transfer without data processing) 1 0 non-sequential transfer (single transfer or burst transfer) 1 1 sequential transfer (transfer in which the address currently being transferred is related to the previously transferred address) 0 1 (reserved for future function expansion) remark 0: low level 1: high level (2) bus cycle type the bus master indicates the current bus cycle status according to the vmctyp2 to vmctyp0 signals. table 4-2. vmctyp2 to vmctyp0 signals vmctyp2 vmctyp1 vmctyp0 bus cycle status 0 0 0 opcode fetch 0 0 1 data access 0 1 0 misalign access note 0 1 1 read modify write access 1 0 0 opcode fetch of jump address due to branch instruction 1 1 0 dma 2-cycle transfer 1 1 1 dma flyby transfer 1 0 1 (reserved for future function expansion) note output only when a high level is input to the ifimaen pin (misalign access enabled). remark 0: low level 1: high level
chapter 4 bcu preliminary user?s manual a15015ej3v0um 102 (3) byte enable the bus master uses the vmbenz3 to vmbenz0 signals to indicate the byte data among the data obtained by quartering the data bus (vbdi31 to vbdi0 and vbdo31 to vbdo0) into byte units. table 4-3. vmbenz3 to vmbenz0 signals active (low-level output) signal enabled byte data vmbenz3 vbdi31 to vbdi24, vbdo31 to vbdo24 vmbenz2 vbdi23 to vbdi16, vbdo23 to vbdo16 vmbenz1 vbdi15 to vbdi8, vbdo15 to vbdo8 vmbenz0 vbdi7 to vbdi0, vbdo7 to vbdo0 (4) transfer size the bus master uses the vmsize1 and vmsize0 signals to indicate the transfer size. table 4-4. vmsize1 and vmsize0 signals vmsize1 vmsize0 explanation 0 0 byte (8 bits) 0 1 halfword (16 bits) 1 0 word (32 bits) 1 1 (reserved for future function expansion) remark 0: low level 1: high level (5) sequential status the bus master uses the vmseq2 to vmseq0 signals to indicate the ?burst transfer length? when a burst transfer starts, to indicate ?continuous? during a burst transfer, and to indicate ?single transfer? at the end of the burst transfer. table 4-5. vmseq2 to vmseq0 signals vmseq2 vmseq1 vmseq0 sequential status 0 0 0 single transfer 0 0 1 continuous (indicates that the next transfer address is related to the current transfer address) note 0 1 0 continuous 4 times (burst transfer length: 4) 0 1 1 continuous 8 times (burst transfer length: 8) 1 0 0 continuous 16 times (burst transfer length: 16) 1 0 1 continuous 32 times (burst transfer length: 32) 1 1 0 continuous 64 times (burst transfer length: 64) 1 1 1 continuous 128 times (burst transfer length: 128) note this is output during continuous 2 times, or continuous 4, 8, 16, 32, 64, or 128 times transfer. remark 0: low level 1: high level
chapter 4 bcu preliminary user?s manual a15015ej3v0um 103 (6) transfer response the transfer response is indicated by the vmwait, vmahld, and vmlast signals, which are output from the bus slave (the signal names on the bus slave side are vswait, vsahld, and vslast). these signals become effective only while the vbclk signal is low level. table 4-6. vmwait, vmahld, and vmlast signals vmwait vmahld vmlast explanation 0 0 0 status when the current transfer is completed (ready status) 0 0 1 last response (burst transfer last response status) 1 0 0 wait response (wait status) 1 1 0 maintains address and control signal (address hold status) other than the above (reserved for future function expansion) remark 0: low level 1: high level caution once the vmahld signal becomes active (1), hold the active level (1) until the vmwait signal becomes inactive (0). it is not possible to return to the wait state from the address hold state during a bus cycle. vmwait vmahld vmwait vmahld (7) transfer direction the bus master uses the vmwrite signal to indicate the transfer direction. this signal outputs a high level during write access. (8) data bus direction control the vbdc signal is the data input (vbdi31 to vbdi0) control signal output pin. this signal outputs a high level during read access. the vbdv signal is the data output (vbdo31 to vbdo0) control signal output pin. this signal outputs a high level during write access. table 4-7. vbdc and vbdv signals vbdc vbdv explanation 1 0 read access 0 1 write access remark 0: low level 1: high level
chapter 4 bcu preliminary user?s manual a15015ej3v0um 104 4.9.3 read/write timing (1) read timing read data is output from the bus slave side in synchronization with the rising edge of the vbclk signal immediately after the end of address output to the bus slave. following this, the bus master fetches (samples) the data in synchronization with the next falling edge of the vbclk signal. however, if the vmahld signal has been input at an active level (high level), the bus slave outputs data in synchronization with the rising edge of the vbclk signal immediately after the active-level vmahld was input, and the bus master fetches (samples) the data in synchronization with the next falling edge of the vbclk signal. (2) write timing write data is output from the NU85ET in synchronization with the falling edge of the vbclk signal half clock after the address is output to the bus slave. the following pages show the read/write timing of the bus master and slaves connected to the vsb. the diagrams show the timing seen from the NU85ET side when the NU85ET has the bus access right. remark o mark: sampling timing a.x: arbitrary address output from the vma27 to vma0 pins d.x: i/o data for address ?a.x? : arbitrary level (for input), or undefined status (for output)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 105 figure 4-14. read/write timing of bus slave connected to vsb (1/12) (a) 32-bit bus (single transfer, no waits) vmttyp1, vmttyp0 (output) a.0 vmlock (output) vma27 to vma0 (output) vmwrite (output) read write idle vbclk (input) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdo31 to vbdo0 (output) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) ffh (0,0) (0,0,0,0) l h l xxh (1,0) (1,0) a.1 a.3 a.2 a.5 a.4 a.7 a.6 a.9 a.8 (0,0,0,0) xxh d.6 d.7 d.8 d.9 idle (0,0) (0,0,1) ffh (1,1,1,1) (1,1,1,1) vbdi31 to vbdi0 (input) d.0 d.1 d.2 d.3 d.4 d.5 vbdv (output) (0,0,1) (0,0,0) (0,0,0) (1,0) (1,0)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 106 figure 4-14. read/write timing of bus slave connected to vsb (2/12) (b) 32-bit bus (single transfer, 1 wait inserted) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read write idle vmstz (output) vmwait (input) vmahld (input) vmlast (input) d.0 vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) ffh (0,0) l h l xxh (1,0) (0,0,0,0) xxh (1,1) (1,0) (1,1) (1,0) (1,1) (1,0) (1,1) (1,0) (1,1) (1,0) (1,1) (1,0) (1,1) (1,0) (1,1) a.0 idle (0,0) a.1 a.2 a.3 a.4 a.5 a.6 a.7 (0,0,0,0) (0,0,1) d.1 d.4 d.5 d.6 d.7 vbclk (input) ffh (1,1,1,1) (1,1,1,1) d.2 d.3 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1) (0,0,0) (0,0,0) (1,0) (1,0)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 107 figure 4-14. read/write timing of bus slave connected to vsb (3/12) (c) 32-bit bus (single transfer, 2 waits inserted) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read write idle vmstz (output) vmwait (input) vmahld (input) vmlast (input) d.0 vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) ffh (0,0) l h l xxh (1,0) (0,0,0,0) xxh (1,0) a.0 idle (0,0) a.1 a.2 a.4 (0,0,1) (0,0,0) (1,0) d.1 d.2 d.3 d.4 vbclk (input) (1,1) (1,0) (1,1) (1,0) (1,1) (1,1) (1,0) (1,1) ffh (0,0,0,0) (1,1,1,1) (1,1,1,1) a.3 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1) (0,0,0) (1,0)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 108 figure 4-14. read/write timing of bus slave connected to vsb (4/12) (d) 32-bit bus (single transfer, 2 waits and address hold inserted) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read idle vmstz (output) vmwait (input) vmahld (input) vmlast (input) d.0 vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) (0,0) l h l xxh (1,0) a.0 a.1 a.2 vbclk (input) (1,1) (1,0) (1,1) (1,0) (1,1) ffh (0,0,1) (0,0,0) (1,0) l (0,0,0,0) (1,1,1,1) d.1 d.2 vbdo31 to vbdo0 (output) l vbdv (output) l
chapter 4 bcu preliminary user?s manual a15015ej3v0um 109 figure 4-14. read/write timing of bus slave connected to vsb (5/12) (e) 32-bit bus (4-word sequential transfer, data access) vmttyp1, vmttyp0 (output) a.0 vmlock (output) vma27 to vma0 (output) vmwrite (output) read write idle vbclk (input) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) ffh (0,0) (0,0,0,0) h xxh (1,1) (1,1) a.1 a.3 a.2 a.5 a.4 a.7 a.6 (0,0,0,0) xxh idle (0,0) (0,0,1) (0,1,0) (1,0) ffh (1,0) (1,0) (0,0,1) (0,1,0) (0,0,1) d.4 l d.5 d.6 d.7 (1,1,1,1) (1,1,1,1) (0,0,0) d.0 d.1 d.2 d.3 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1) (0,0,0) (1,0)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 110 figure 4-14. read/write timing of bus slave connected to vsb (6/12) (f) 16-bit bus (4-word sequential transfer, data access) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read write vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) (1,1,0,0) h xxh xxh (0,0,1) (0,1,1) (1,0) (1,0) (0,0,1) (0,0,0) (0,1,1) (0,0,1) (0,0,0) l d.9 d.11 d.12 idle ffh (0,0) idle ffh (0,0) (1,1,1,1) vbclk (input) (1,1) a.0 a.8 (1,1,0,0) d.10 d.13 d.14 d.15 word transfer word transfer word transfer word transfer word transfer word transfer word transfer word transfer (1,0) a.15 a.10 a.12 a.11 a.9 a.13 a.14 a.1 a.3 a.2 a.4 a.6 a.5 a.7 (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) (1,1,0,0) d.0 d.1 d.2 d.3 d.4 d.5 d.6 d.7 d.8 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1) (1,1,1,1) (1,0) (1,1)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 111 figure 4-14. read/write timing of bus slave connected to vsb (7/12) (g) 8-bit bus (4-byte sequential transfer, external rom fetch) vmttyp1, vmttyp0 (output) a.0 vmlock (output) vma27 to vma0 (output) vmwrite (output) read read idle vbclk (input) vmstz (output) vmwait (input) vmahld (input) vmlast (input) d.0 vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) ffh (0,0) (1,1,1,0) h xxh (1,1) (1,1) a.1 a.3 a.2 a.5 a.4 a.7 a.6 (1,1,1,0) xxh d.1 idle (0,0) (0,0,0) (0,1,0) (1,0) ffh (1,0) (1,0) l (0,0,1) (0,1,0) (0,0,1) (1,1,1,1) (1,1,1,1) (0,0,0) (0,0,0) d.2 d.3 d.4 d.5 d.6 d.7 l vbdo31 to vbdo0 (output) l vbdv (output) (0,0,0) (1,0)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 112 figure 4-14. read/write timing of bus slave connected to vsb (8/12) (h) 32-bit bus (little-endian, word/halfword/byte transfer) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read write vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) h xxh (0,0,1) (1,0) l idle ffh (0,0) vbclk (input) (1,0) word transfer byte transfer word transfer byte transfer idle (0,0) l (1,0) (0,1) (1,0) (0,1) xxh ffh halfword transfer halfword transfer (1,1,1,1) a.10 a.12 a.11 a.9 a.13 a.8 a.7 (0,0,1,1) (1,1,1,0) (1,1,0,1) (1,0,1,1) (0,1,1,1) (0,0,0,0) (1,1,0,0) a.1 a.3 a.2 a.0 a.4 a.6 a.5 (1,1,1,1) (0,0,1,1) (1,1,1,0) (1,1,0,1) (1,0,1,1) (0,1,1,1) (0,0,0,0) (1,1,0,0) d.0 d.1 d.2 d.3 d.4 d.5 d.6 d.9 d.11 d.12 d.10 d.13 d.8 d.7 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1) (0,0,0) (0,0,0) (0,0) (0,0)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 113 figure 4-14. read/write timing of bus slave connected to vsb (9/12) (i) 32-bit bus (big-endian, word/halfword/byte transfer) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read write vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) h xxh (0,0,1) (1,0) (0,0,0) l idle ffh (0,0) vbclk (input) (1,0) word transfer byte transfer word transfer byte transfer idle (0,0) l (1,0) (0,1) (1,0) (0,1) xxh ffh halfword transfer halfword transfer a.10 a.12 a.11 a.9 a.13 a.8 a.7 (0,0,0,0) (1,1,0,0) (0,1,1,1) (1,0,1,1) (1,1,0,1) (1,1,1,0) (0,0,1,1) (1,1,1,1) a.1 a.3 a.2 a.0 a.4 a.6 a.5 (1,1,0,0) (0,1,1,1) (1,0,1,1) (1,1,0,1) (1,1,1,0) (0,0,0,0) (0,0,1,1) (1,1,1,1) d.0 d.1 d.2 d.3 d.4 d.5 d.6 d.9 d.11 d.12 d.10 d.13 d.8 d.7 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1) (0,0,0) (0,0) (0,0)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 114 figure 4-14. read/write timing of bus slave connected to vsb (10/12) (j) 16-bit bus (little-endian, word/halfword/byte transfer) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read write vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) h a.1 a.3 a.2 (0,0,0) l idle ffh (0,0) vbclk (input) a.0 a.4 a.6 a.5 word transfer byte transfer word transfer byte transfer idle (0,1) halfword transfer halfword transfer (0,0,1) (1,1) (1,0) (1,0) (0,0) (1,1) (1,0) a.7 (1,1,0,0) (1,1,1,1) (1,1,0,0) (1,1,1,1) (0,0,1) (0,0,0) (0,0,1) (1,0) (0,0) (0,1) (1,0) (0,0) xxh ffh xxh (1,0) a.11 a.13 a.12 a.10 a.14 a.9 a.8 a.15 (1,1,1,0) (1,1,0,1) (1,1,1,0) (1,1,0,1) (1,1,1,0) (1,1,0,1) (1,1,1,0) (1,1,0,1) d.0 d.1 d.2 d.3 d.4 d.5 d.6 d.7 d.10 d.12 d.13 d.11 d.14 d.9 d.8 d.15 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 115 figure 4-14. read/write timing of bus slave connected to vsb (11/12) (k) 16-bit bus (big-endian, word/halfword/byte transfer) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read write vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) h (1,0) (0,0,0) l idle ffh (0,0) vbclk (input) word transfer byte transfer word transfer byte transfer idle (0,1) halfword transfer halfword transfer (0,0,1) (1,1) (1,0) (1,0) (0,0) (1,1) (1,0) (1,1,0,0) (1,1,1,1) (1,1,0,0) (1,1,1,1) (0,0,1) (0,0,0) (0,0,1) (1,0) (0,0) (0,1) (1,0) (0,0) xxh ffh xxh a.11 a.13 a.12 a.10 a.14 a.8 a.15 (1,1,0,1) (1,1,1,0) (1,1,0,1) (1,1,1,0) a.9 a.1 a.3 a.2 a.0 a.4 a.6 a.5 (1,1,0,1) (1,1,1,0) (1,1,0,1) a.7 (1,1,1,0) d.0 d.1 d.2 d.3 d.4 d.5 d.6 d.7 d.10 d.12 d.13 d.11 d.14 d.9 d.8 d.15 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 116 figure 4-14. read/write timing of bus slave connected to vsb (12/12) (l) 8-bit bus (little/big-endian, word/halfword/byte transfer) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) read wri te vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vmbstr (output) vbdc (output) vdcsz7 to vdcsz0 (output) vdselpz (output) h a.1 a.3 a.2 (1,0) (0,0,1) l idle ffh (0,0) a.0 a.4 a.6 a.5 word transf er byte transfer idle (0,1) halfword transfer (0,0,1) (1,1) (1,0) a.7 (1,1,1,0) (1,1,1,1) (1,1,1,0) (1,1,1,1) (0,1,0) (1,0) (0,0) xxh ffh xxh (1,0) (1,1) (1,0) (1,1) (1,0) (1,1) (1,0) (1,1) (1,0) (0,0) a.8 a.9 (0,0,0) (0,0,1) (0,0,0) (0,0,1) (0,0,0) (0,1,0) (0,0,1) (0,0,0) (0,0,1) (0,0,0) (0,1) (1,0) (0,0) byte transfer halfword transfer word transf er vbclk (input) a.11 a.13 a.12 a.10 a.14 a.15 a.16 a.17 d.0 d.1 d.2 d.3 d.4 d.5 d.6 d.7 d.8 d.9 d.10 d.12 d.13 d.11 d.14 d.15 d.16 d.17 vbdo31 to vbdo0 (output) vbdv (output) (0,0,1)
chapter 4 bcu preliminary user?s manual a15015ej3v0um 117 4.9.4 vsb read/write timing example the read/write timing example of the sram connected to the nt85e500 is shown below. figure 4-15. vsb timing example (1/2) (a) vsb read timing example vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) read read vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vbdc (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note ffh (1,0) (1,0) (1,1) (1,1) (0,0) vbclk (input) vbdo31 to vbdo0 (output) vbdv (output) do31 to do0 (output) note rdz (output) note wrz3 to wrz0 (output) note a.0 0000000h a.1 d.0 d.1 00000000h (0,0,0,0) (1,1,1,1) (0,0,0,0) (0,0,1) (0,0,0) (0,0,1) (1,0) (0,0) (1,0) (0,0,0) l l xxh 00000000h (1,1,1,1) d.1 d.0 xxh note nt85e500 signal remark o mark: sampling timing
chapter 4 bcu preliminary user?s manual a15015ej3v0um 118 figure 4-15. vsb timing example (2/2) (b) vsb write timing example vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) write write vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vbdc (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note ffh (1,0) (1,0) (1,1) (1,1) (1,1) vbclk (input) vbdo31 to vbdo0 (output) vbdv (output) do31 to do0 (output) note rdz (output) note wrz3 to wrz0 (output) note a.0 a.1 a.2 00000000h (0,0,0,0) (1,1,0,0) (0,0,1) (1,0) (0,1) (0,0,0) l l fbh (0,0,0,0) write (1,0) d.0 d.1 d.2 d.0 d.1 d.2 (1,1,1,1) (1,1,0,0) (1,1,1,1) (1,1,0,0) l h note nt85e500 signal remark o mark: sampling timing
chapter 4 bcu preliminary user?s manual a15015ej3v0um 119 4.9.5 reset timing the reset timing of when a low level is input to the ifirome pin (the connected rom is used as external memory (via the vsb)) is shown below. caution be sure to input the vbclk signal continuously during the reset period (the period when resetz is low level). figure 4-16. reset timing vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) vdselpz (output) (0, 0) dcresz (input) (0, 0) (1, 0) l a.0 a.1 l (0,0,0,0) (1,0,0) (0,0,0) (0,0,0) (1, 0) ffh ffh feh feh feh h l vbdo31 to vbdo0 (output) (1,1,1,1) (0, 0) (1,0) (1, 0) (0,0,0,0) a.2 (1,1,1,1) (0,0,0,0) (1,0,0) undefined d.0 d.1 l ifirome (input) vbclk (input) remarks 1. o mark: sampling timing a.x: arbitrary address output from the vma27 to vma0 pins d.x: input data from address ?a.x? : arbitrary input level 2. this diagram shows the timing seen from the NU85ET side when the NU85ET has the bus access right.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 120 4.9.6 bus master transition timing there are five kinds of external bus cycles as shown below. bus hold has the highest priority, followed by refresh cycle, dma cycle, operand data access, and instruction fetch in that order. priority external bus cycle bus master bus hold external device refresh cycle sdram controller dma cycle dma controller operand data access cpu high low instruction fetch cpu the procedure of bus master transition from the master device (m1) operating as the bus master to another master device (m2) is as follows. <1> m1, which operates as the bus master inputs a vsb access right request signal (vareq) from m2, another master device. <2> the bus arbiter within m1 goes into waiting for the ready response from the bus slave. <3> upon completion of the current transfer, the bus slave returns a ready response. <4> the vmttyp1 and vmttyp0 signals of m1 indicate address-only transfer, and the vmlock, vdcsz7 to vdcsz0, and vdselpz signals are all ignored. <5> m1 returns an acknowledge signal (vaack) for the vareq signal and a ready response to m2. <6> m2 becomes the bus master and data transfer on vsb starts. remark the ready response is when the vmwait, vmahld, and vmlast signals are all in a low-level state.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 121 figure 4-17. bus master transition timing vmttyp1, vmttyp0 (output) vma27 to vma0 (output) m1 m2 vbclk (input) vmwait (input) vmahld (input) vmlast (input) (1,0) vareq (input) vaack (output) vmlock (output) a.2 a.3 vmwrite, vmbenz3 to vmbenz0, vmctyp2 to vmctyp0, vmsize1, vmsize0, vmseq2 to vmseq0, vmstz, vmbstr, vbdc (output) ctrl.2 ctrl.3 vdcsz7 to vdcsz0 (output) cs.2 cs.3 vbdo31 to vbdo0 (output) vmlock (output) vmttyp1, vmttyp0 (output) vdselpz (output) (1,1) (0,0) vma27 to vma0 (output) a.1 ctrl.1 cs.1 vdcsz7 to vdcsz0 (output) vdselpz (output) vbdo31 to vbdo0 (output) <1> <2> <3> <4> <5> <6> h d.0 d.1 bus master d.2 m1 m2 m1 vmwait (input) vmahld (input) vmlast (input) h vmwrite, vmbenz3 to vmbenz0, vmctyp2 to vmctyp0, vmsize1, vmsize0, vmseq2 to vmseq0, vmstz, vmbstr, vbdc (output) remark o mark: sampling timing : arbitrary input level
chapter 4 bcu preliminary user?s manual a15015ej3v0um 122 4.9.7 misalign access timing the vsb access timing when misalign access is enabled (when a high level is input to the ifimaen pin) is shown below. figure 4-18. misalign access timing (1/2) (a) timing for access to even addresses (writing the 32-bit data ?12345678h? to address ?200002h?) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmstz (output) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) vbclk (input) (1,0) (0,0,1,1) (1,1) (1,0) (1,1) 200002h 200004h vmwrite (output) h (1,1,0,0) (0,1,0) (0,0,0) (0,1) vbdo31 to vbdo0 (output) vmwait (input) vmahld (input) vmlast (input) halfword write halfword write 56780000h 00001234h vbdi31 to vbdi0 (input) l remarks 1. o mark: sampling timing : arbitrary input level 2. this diagram shows the timing seen from the NU85ET side when the NU85ET has the bus access right.
chapter 4 bcu preliminary user?s manual a15015ej3v0um 123 figure 4-18. misalign access timing (2/2) (b) timing for access to odd addresses (writing the 32-bit data ?12345678h? to address ?200003h?) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmstz (output) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmseq2 to vmseq0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) vbclk (input) (1,0) (0,1,1,1) (1,1) (1,0) (1,1) 200003h 200004h vmwrite (output) h (1,1,0,0) (0,1,0) (0,0,0) vbdi31 to vbdi0 (input) vmwait (input) vmahld (input) vmlast (input) (1,0) (1,1) 200006h (1,0,1,1) byte write halfword write byte write (0,1) (0,0) (0,0) vbdo31 to vbdo0 (output) 78000000h 00003456h 00120000h l remarks 1. o mark: sampling timing : arbitrary input level 2. this diagram shows the timing seen from the NU85ET side when the NU85ET has the bus access right.
preliminary user?s manual a15015ej3v0um 124 chapter 5 bbr the bus bridge (bbr) converts signals that are passed between the vsb and npb. the bbr sets up the following functions for peripheral macros that are connected to the npb. ? wait insertion function ? retry function figure 5-1. npb connection overview bcu bbr peripheral macro (1) vsb (high speed) NU85ET npb (low speed) peripheral macro (2) peripheral macro (3) peripheral macro (4)
chapter 5 bbr preliminary user?s manual a15015ej3v0um 125 the following figure shows an example of connection between the NU85ET and peripheral macros that are connected to the npb. figure 5-2. NU85ET and peripheral macro connection example bbr vpa13 to vpa0 vpwrite address decoder vpdo15 to vpdo0 vpstb vpubenz vplock vpretr vpcs vpdw15 to vpdw0 vpdr15 to vpdr0 peripheral macro (1) vpcs vpdw15 to vpdw0 vpdr15 to vpdr0 peripheral macro (2) NU85ET vpan note to vpa0 vpwrite vpstb vpubenz vplock vpretr vpan note to vpa0 vpwrite vpstb vpubenz vplock vpretr vpdact vpresz vpresz vpresz vpdi15 to vpdi0 vptrien vptrien note the value of n differs according to the type of peripheral macro connected to the npb.
chapter 5 bbr preliminary user?s manual a15015ej3v0um 126 5.1 programmable peripheral i/o area the NU85ET has a 4 kb peripheral i/o area that is allocated in advance in the address space and a 12 kb programmable peripheral i/o area that can be allocated at arbitrary addresses according to register settings (see 4.4 programmable peripheral i/o area selection function ). if the peripheral i/o area or programmable peripheral i/o area in the memory map shown in figure 5-3 is accessed, the npb becomes active. the programmable peripheral i/o area is set by the peripheral i/o area select control register (bpc). figure 5-3. peripheral i/o area and programmable peripheral i/o area (a) 64 mb mode (b) 256 mb mode (n = yy11b) peripheral i/o area (4 kb) (4 kb) programmable peripheral i/o area (12 kb) fffffffh ffff000h fffefffh 0000000h xxxnfffh xxxm000h 3fff000h 3ffefffh 3ffffffh 3fff000h 3ffefffh xxxnfffh xxxm000h 0000000h same area (m = yy00b) same area same area note peripheral i/o area (4 kb) (4 kb) programmable peripheral i/o area (12 kb) (ram area) (n = yy11b) (m = yy00b) note see figure 3-8 data area (256 mb mode) . remarks 1. xxx: setting according to the pa13 to pa02 bits of the bpc register yy: setting according to the pa01 and pa00 bits of the bpc register 2. since the areas indicated by ?same area? are linked, if data is written in one area, data having the same contents is also written in the other area.
chapter 5 bbr preliminary user?s manual a15015ej3v0um 127 figure 5-4. peripheral i/o area select control register (bpc) 1514131211109876543210 bpc pa 15 0 pa 13 pa 12 pa 11 pa 10 pa 09 pa 08 pa 07 pa 06 pa 05 pa 04 pa 03 pa 02 pa 01 pa 00 address fffff064h after reset 0000h bit position bit name function 15 pa15 sets whether or not the programmable peripheral i/o area can be accessed. 0: it cannot be accessed 1: it can be accessed 13 to 0 pa13 to pa00 specifies bit 27 to bit 14 of the starting address of the programmable peripheral i/o area. (the other bits are fixed at zero.) caution always set bit 14 to 0. if it is set to 1, operation is not guaranteed. cautions 1. in 64 mb mode, if the programmable peripheral i/o area overlaps the following areas, the programmable peripheral i/o area becomes ineffective. ? ? ? ? peripheral i/o area ? ? ? ? rom area ? ? ? ? ram area 2. in 256 mb mode, if the programmable peripheral i/o area overlaps the following areas, the programmable peripheral i/o area becomes ineffective. ? ? ? ? peripheral i/o area ? ? ? ? rom area ? ? ? ? ram area ? ? ? ? the area that is the same as the ram area and that is located at address 3ffefffh and below (see figure 3-8 data area (256 mb mode)) 3. if no peripheral macros are connected to the npb, no programmable peripheral i/o area need be set (set the bpc register to its after-reset value). 4. the programmable peripheral i/o area address setting is enabled only once. do not change addresses in the middle of a program. figure 5-5 shows a bpc register setting example and the memory map after the setting is made.
chapter 5 bbr preliminary user?s manual a15015ej3v0um 128 figure 5-5. bpc register setting example (a) bpc register setting 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1514131211109876543210 bpc programmable peripheral i/o area: can be accessed programmable peripheral i/o area starting address: 2400000h (b) memory map [64 mb mode] [256 mb mode] bank 0 01fffffh 0200000h 0000000h bank 1 03fffffh 0400000h bank 2 05fffffh 0600000h bank 3 07fffffh 0800000h 3ffffffh 4000000h 7ffffffh 8000000h bffffffh c000000h f7fffffh f800000h bank 12 f9fffffh fa00000h bank 13 fbfffffh fc00000h bank 14 fdfffffh fe00000h bank 15 fffffffh area 2 area 3 programmable peripheral i/o area 2402fffh 2400000h area 1 area 0 bank 0 01fffffh 0200000h 0000000h bank 1 03fffffh 0400000h bank 2 05fffffh 0600000h bank 3 07fffffh 0800000h bank 4 0bfffffh 0c00000h bank 5 0ffffffh 1000000h bank 6 17fffffh 1800000h bank 7 1ffffffh 2000000h 27fffffh 2800000h bank 9 2ffffffh 3000000h 33fffffh 3400000h bank 11 37fffffh 3800000h bank 12 39fffffh 3a00000h bank 13 3bfffffh 3c00000h bank 14 3dfffffh 3e00000h bank 15 3ffffffh bank 10 programmable peripheral i/o area 2402fffh 2400000h bank 8
chapter 5 bbr preliminary user?s manual a15015ej3v0um 129 5.2 wait insertion function the bbr is equipped with a wait insertion function for connection with low-speed peripheral macros connected to the npb. the npb strobe wait control register (vswc) is used to set up this function. the vswc register sets the setup wait length and vpstb wait length (see figure 5-6 ). the number of waits can be set in the range from 0 to 7 clocks based on the internal system clock (vbclk). the vswc register can be read or written in 8-bit or 1-bit units. figure 5-6. npb strobe wait control register (vswc) (1/2) 76543210 vswc 0 suwl2 suwl1 suwl0 0 vswl2 vswl1 vswl0 address fffff06eh after reset 77h bit position bit name function sets the setup wait length. suwl2 suwl1 suwl0 setup wait length 0 0 0 0 (no waits) 0011 t clk 0102 t clk 0113 t clk 1004 t clk 1015 t clk 1106 t clk 1117 t clk 6 to 4 suwl2 to suwl0 remark t clk : internal system clock (vbclk) cycle caution bits 7 and 3 of the vswc register must be set to 0. the operation when these bits are set to 1 is not guaranteed.
chapter 5 bbr preliminary user?s manual a15015ej3v0um 130 figure 5-6. npb strobe wait control register (vswc) (2/2) bit position bit name function sets the vpstb wait length. vswl2 vswl1 vswl0 vpstb wait length 0 0 0 0 (no waits) 0011 t clk 0102 t clk 0113 t clk 1004 t clk 1015 t clk 1106 t clk 1117 t clk 2 to 0 vswl2 to vswl0 remark t clk : internal system clock (vbclk) cycle vpstb (output) vpa13 to vpa0 (output) vpstb wait 0.5 clock setup wait vbclk (input) 1 clock 1.5 clock be sure to set values for the setup wait and vpstb wait lengths at each operation frequency that are the same as or greater than the number of waits shown in table 5-1 below. table 5-1. setting of setup wait, vpstb wait lengths at each operation frequency operation frequency wait length up to 25 mhz up to 33 mhz up to 50 mhz up to 76.9 mhz setup wait length 1 1 1 2 vpstb wait length 1 2 4 5 caution these setting values are not guaranteed, so be sure to set the number of waits appropriate to the system after verifying operation.
chapter 5 bbr preliminary user?s manual a15015ej3v0um 131 5.3 retry function the retry function, which repeats read or write processing according to a retry request signal (vpretr) from a peripheral macro on the npb, is used in situations such as when the data setup time is insufficient. if a high-level signal is being input to the vpretr and vpdact pins at the falling edge of the vpstb signal, the vpstb signal rises again and the read or write operation is repeated. figure 5-7. retry function address data address vpstb (output) vpretr (input) vpdact (input) vpa13 to vpa0 (output) vpdo15 to vpdo0 (output) read write 1 clock note 1 clock note data vpdi15 to vpdi0 (input) vpwrite (output) data note this is the same width as one vbclk clock. remark o mark: sampling timing : arbitrary input level
chapter 5 bbr preliminary user?s manual a15015ej3v0um 132 5.4 npb read/write timing figures 5-8 to 5-13 show the basic read/write timing of the npb, figure 5-14 shows a timing example for read/write access to a bus slave connected to the NU85ET and npb, and figure 5-15 shows a timing example of write access to a peripheral i/o register. each one of these figures shows the timing as seen from the NU85ET side when the NU85ET has the bus access right. remark o mark: sampling timing a.x: arbitrary address output from the vpa13 to vpa0 pins d.x: i/o data for address ?a.x? : signal in undefined state (for output signal), arbitrary level (for input signal) figure 5-8. halfword access timing vpwrite (output) vpa13 to vpa0 (output) vpdo15 to vpdo0 (output) vpretr (input) d.0 a.0 a.1 read cycle write cycle vplock (output) vpubenz (output) l vpstb (output) vpdi15 to vpdi0 (input) d.1
chapter 5 bbr preliminary user?s manual a15015ej3v0um 133 figure 5-9. timing of byte access to odd address a.0 a.1 read cycle write cycle l d.0 d.1 vpa13 to vpa0 (output) vpdo15 to vpdo8 (output) vpwrite (output) vpretr (input) vplock (output) vpubenz (output) vpstb (output) vpdi15 to vpdi8 (input) vpdo7 to vpdo0 (output) vpdi7 to vpdi0 (input) figure 5-10. timing of byte access to even address a.0 a.1 read cycle write cycle l d.0 d.1 vpa13 to vpa0 (output) vpdo7 to vpdo0 (output) vpwrite (output) vpretr (input) vplock (output) vpubenz (output) vpstb (output) vpdi7 to vpdi0 (input) vpdo15 to vpdo8 (output) vpdi15 to vpdi8 (input)
chapter 5 bbr preliminary user?s manual a15015ej3v0um 134 figure 5-11. read modify write timing idle cycle address l data write cycle read cycle address data vpa13 to vpa0 (output) vpwrite (output) vpretr (input) vplock (output) vpubenz (output) vpstb (output) vpdo15 to vpdo0 (output) vpdi15 to vpdi0 (input) remark the vplock signal becomes active during a read operation. figure 5-12. retry timing (write) vpa13 to vpa0 (output) address vpwrite (output) vpstb (output) vpubenz (output) vplock (output) vpretr (input) vpdo15 to vpdo0 (output) vpdact (input) data remark if the vpretr and vpdact signals are high level at the falling edge of the vpstb signal, the vpstb signal becomes active, and the write operation is performed again.
chapter 5 bbr preliminary user?s manual a15015ej3v0um 135 figure 5-13. retry timing (read) vpa13 to vpa0 (output) address vpwrite (output) vpstb (output) vpubenz (output) vplock (output) vpretr (input) vpdi15 to vpdi0 (input) vpdact (input) data data remark if the vpretr and vpdact signals are high level at the falling edge of the vpstb signal, the vpstb signal becomes active, and the read operation is performed again.
chapter 5 bbr preliminary user?s manual a15015ej3v0um 136 figure 5-14. read/write timing of bus slave connected to npb (1/4) (a) example of timing of word-data write to npb peripheral macro (programmable peripheral i/o area) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vswait (output) vsahld (output) vslast (output) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) vdselpz (output) vpstb (output) vpwrite (output) vpubenz (output) vpdo15 to vpdo0 (output) vpa13 to vpa0 (output) vpretr (input) vmseq2 to vmseq0 (output) (1,1) (1,1,0,0) vbclk (input) l l 3800h 3802h ffh (1,0) (0,0,1) 2403802h 2403800h (1,0) (1,1) (1,0) (0,0,1) (0,0,0) 1234h 5678h vpdi15 to vpdi0 (input) vbdo31 to vbdo0 (output) xxxx1234h xxxx5678h vbdi31 to vbdi0 (input) l vmahld (input) l vmwait (input) vmlast (input)
chapter 5 bbr preliminary user?s manual a15015ej3v0um 137 figure 5-14. read/write timing of bus slave connected to npb (2/4) (b) example of timing of halfword-data write to npb peripheral macro (programmable peripheral i/o area) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vswait (output) vsahld (output) vslast (output) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) vdselpz (output) vpstb (output) vpwrite (output) vpubenz (output) vpdo15 to vpdo0 (output) vpa13 to vpa0 (output) vpretr (input) vmseq2 to vmseq0 (output) vbclk (input) l l 3804h 2403804h (1,0) (1,1) (0,0,1) (0,0,0) 00ffh vpdi15 to vpdi0 (input) vbdo31 to vbdo0 (output) xxxx00ffh vbdi31 to vbdi0 (input) l (0,1) ffh l 3806h 2403806h (1,1) 55aah (1,0) xxxx55aah (1,1,0,0) vmahld (input) l vmwait (input) vmlast (input)
chapter 5 bbr preliminary user?s manual a15015ej3v0um 138 figure 5-14. read/write timing of bus slave connected to npb (3/4) (c) example of timing of word-data read from npb peripheral macro (programmable peripheral i/o area) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vswait (output) vsahld (output) vslast (output) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) vdselpz (output) vpstb (output) vpwrite (output) vpubenz (output) vpdo15 to vpdo0 (output) vpa13 to vpa0 (output) vpretr (input) vmseq2 to vmseq0 (output) (1,1) (0,0,1) vbclk (input) l 3800h 3802h ffh 2403800h 2403802h (1,1) (0,0,1) (0,0,0) 5678h 5678h 1234h (1,0) (1,0) (1,0) vpdi15 to vpdi0 (input) vbdi31 to vbdi0 (input) xxxx5678h xxxx1234h vbdo31 to vbdo0 (output) l l l l vmahld (input) l vmwait (input) vmlast (input) (1,1,0,0)
chapter 5 bbr preliminary user?s manual a15015ej3v0um 139 figure 5-14. read/write timing of bus slave connected to npb (4/4) (d) example of timing of halfword-data read from npb peripheral macro (programmable peripheral i/o area) vmttyp1, vmttyp0 (output) vmlock (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vswait (output) vsahld (output) vslast (output) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) vdselpz (output) vpstb (output) vpwrite (output) vpubenz (output) vpdi15 to vpdi0 (input) vpa13 to vpa0 (output) vpretr (input) vmseq2 to vmseq0 (output) (1,1) vbclk (input) l l 3804h 3806h ffh (0, 1) (0,0,0) 2403806h 2403804h (1,1) l l (0,0,1) (1,1,0,0) (1,0) (1,0) vpdo15 to vpdo0 (output) l 55aah 00ffh 55aah 55aah vbdi31 to vbdi0 (input) xxxx00ffh vbdo31 to vbdo0 (output) l xxxx55aah vmahld (input) l vmwait (input) vmlast (input)
chapter 5 bbr preliminary user?s manual a15015ej3v0um 140 figure 5-15. npb write timing (example of timing of data write to csc0 and csc1 registers) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vswait (output) vpa13 to vpa0 (output) vpdi15 to vpdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vpstb (output) vdcsz7 to vdcsz0 (output) vpubenz (output) (0,0) (1,0) (1,0) ffh (1,1) (0,0) vbclk (input) vbdo31 to vbdo0 (output) vpwrite (output) vplock (output) vpselpz (output) vpdo15 to vpdo0 (output) vpdv (output) (1,1) (0,0) 3fff060h 0000000h 0000000h 3fff062h 0000000h 00000000h 00002c11h 00000000h 00002c11h 00000000h (1,1,1,1) (1,1,0,0) (1,1,1,1) (1,1,0,0) (1,1,1,1) (0,0,0) (0,0,1) (0,0,0) (0,0,1) (0,0,0) (0,0) (0,1) (0,0) (0,1) (0,0) 0000h l h 2c11h 2c11h 0000h 3062h 3060h 0000h
chapter 5 bbr preliminary user?s manual a15015ej3v0um 141 5.5 precautions ? ? ? ? npb access from external master to NU85ET bbr does not provide a bus sizing function. therefore, npb access from the external bus master of the vsb to the NU85ET as a slave must be executed with the bus size of the vsb set to 16 bits.
preliminary user?s manual a15015ej3v0um 142 chapter 6 stbc the standby control unit (stbc) implements the various power save functions of the NU85ET by controlling the external clock generator (cg). 6.1 power save function the power save function has the following three modes. (1) halt mode this mode, which stops the supply of clocks only to the cpu, is set by executing a special-purpose instruction (halt instruction). since the supply of clocks to internal units other than the cpu continues, operation of the NU85ET internal peripheral i/o that do not depend on the cpu instruction processing continues. the power consumption of the overall system can be reduced by intermittent operation that is achieved by combining the halt mode and normal operation mode. (2) software stop mode this mode, which stops the overall system by stopping the external clock generator, is set by means of a psc register setting. the system enters an ultra-low power consumption state in which only leakage current is lost. (3) hardware stop mode this mode, which stops the overall system by stopping the external clock generator, is set by inputting the stopz signal. the system enters an ultra-low power consumption state in which only leakage current is lost. figure 6-1. power save function state transition diagram normal operation mode hardware stop mode set halt mode halt mode set software stop mode input r esetz, nmin, and intm software stop mode (execute halt instruction) (set psc register) input r esetz, nmin, and intm input stopz (h) and r esetz input stopz (l) input stopz (l) input stopz (l) input stopz (h) remarks 1. n = 2 to 0 m = 63 to 0 2. l: low-level input h: high-level input
chapter 6 stbc preliminary user?s manual a15015ej3v0um 143 6.2 control registers 6.2.1 power save control register (psc) the psc is an 8-bit register that controls the power save function. if interrupts are enabled according to the nmi2m to nmi0m and intm bit settings, software stop mode can be canceled by an interrupt request (except when interrupt servicing is disabled by the interrupt mask register (imr0 to imr3)). software stop mode is specified by setting the stp bit. this register can only be written by using a specific procedure so that its settings are not mistakenly overwritten due to erroneous program execution. this register can be read or written in 8-bit or 1-bit units. caution do not set the psc register by transferring data using the dmac. to set this register, always use a store instruction (st or sst) or a bit manipulation instruction (set1, clr1, or not1 instruction). figure 6-2. power save control register (psc) 76543210 psc nmi2m nmi1m nmi0m intm 0 0 stp 0 address fffff1feh after reset 00h bit position bit name function 7 nmi2m masks non-maskable interrupt requests (nmi2) from the nmi2 pin. note 0: enables nmi2 requests 1: disables nmi2 requests 6 nmi1m masks non-maskable interrupt requests (nmi1) from the nmi1 pin. note 0: enables nmi1 requests 1: disables nmi1 requests 5 nmi0m masks non-maskable interrupt requests (nmi0) from the nmi0 pin. note 0: enables nmi0 requests 1: disables nmi0 requests 4 intm masks maskable interrupt r equests (int63 to int0) from the int63 to int0 pins. note 0: enables int63 to int0 requests 1: disables int63 to int0 requests 1 stp specifies software stop mode. when this bit is set (1), software stop mode is set. when software stop mode is canceled, this bit is automatically cleared (0). note the setting is valid in software stop mode only. cautions 1. if the nmi2m to nmi0m and intm bits are set (1) at the same time as the stp bit, the settings of the nmi2m to nmi0m and intm bits are invalid. therefore, if there are unmasked interrupt requests pending when software stop mode is entered, be sure to set (1) those interrupt request bits (nmi2m to nmi0m and intm) before setting (1) the stp bit. 2. because an interrupt request that occurs while the nmi2m to nmi0m and intm bits are set (1) is invalid (it is not held pending), software stop mode cannot be canceled.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 144 use the procedure shown below to set data in the psc register. <1> write the data that is to be set in the psc register to an arbitrary general-purpose register (see 3.2.1 program registers ). <2> use a store instruction (st or sst instruction) to write the contents of the general-purpose register prepared in step <1> to the command register (prcmd). <3> use the following instructions to write the contents of the general-purpose register prepared in step <1> to the psc register (do this immediately after writing the contents of the general-purpose register to the prcmd register). ? store instruction (st or sst instruction) ? bit manipulation instruction (set1, clr1, or not1 instruction) <4> if the NU85ET switches to software stop mode, insert nop instructions (five or more instructions). examples 1. <1> mov 0x02, r11 movea base_address, r0, r20 ; base_address = ffff000h <2> st.b r11, prcmd[r20] ; prcmd = 01fch <3> st.b r11, psc[r20] ; psc = 01feh <4> nop nop nop nop nop 2. <1> mov 0x02, r11 movea 0xf1fch, r0, r20 movea 0xf1feh, r0, r21 <2> st.b r11, 0x0[r20] ; r20 = fffff1fch ( = prcmd) <3> st.b r11, 0x0[r21] ; r21 = fffff1feh ( = psc) <4> nop nop nop nop nop no special procedure is required to read the contents of the psc register. remarks 1. interrupts are not acknowledged for store instructions for the prcmd register. 2. steps <2> and <3> above are assumed to occur consecutively. if another instruction is placed between the instructions described in steps <2> and <3>, when the interrupt is acknowledged for that instruction, the setting may not be established, causing abnormal operation. 3. although the data written in the prcmd register is dummy data, use the same value (data) as the value of the general-purpose register used for setting data in a specific register (step <3> in the examples above) even when writing to the prcmd register (step <2> in the examples above). this is similar to using a general-purpose register for addressing. 4. to enable interrupts immediately after the software stop mode is entered, insert the ei instruction between the <1> mov and <2> st.b instructions.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 145 remarks 5. the following shows the operation when a non-maskable interrupt or maskable interrupt is requested while a nop instruction is being executed. ? if a non-maskable or maskable interrupt is requested before swstoprq becomes active, the interrupt servicing is immediately executed. ? if a non-maskable or maskable interrupt is requested after swstoprq became active, the stop mode is canceled by the requested interrupt after the stop mode is entered, in the same way as cancellation by a normal interrupt. 6.2.2 command register (prcmd) the command register (prcmd) is used to set protection for write operations to the psc register so that the application system is not halted unexpectedly due to erroneous program execution. only the first write operation to the psc register is valid after a registration code (arbitrary 8-bit data) is written to the prcmd register. since the register value can be rewritten only by a predetermined procedure, illegal write operations to the psc register are rejected. data can be written in the prcmd register only in 8-bit units. during reading, the value is undefined. caution do not set the prcmd register by transferring data using the dmac. to set this register, always use a store instruction (st or sst). figure 6-3. command register (prcmd) 76543210 prcmd reg7 reg6 reg5 reg4 reg3 reg2 reg1 reg0 address fffff1fch after reset undefined bit position bit name function 7 to 0 reg7 to reg0 this is the registration code (arbitrary 8-bit data) used when write-accessing the psc register.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 146 6.3 halt mode in halt mode, the operation clock of the cpu is stopped. since the supply of clocks to internal units other than the cpu continues, operation continues. the power consumption of the overall system can be reduced by setting the NU85ET to halt mode while the cpu is idle. (1) setting and operation status the NU85ET is switched to halt mode by the halt instruction. although program execution stops in halt mode, the contents of all registers and of ram immediately before halt mode began are maintained. also, operation continues for all NU85ET-internal peripheral i/o that do not depend on cpu instruction processing. caution insert at least five nop instructions after the halt instruction. (2) cancellation of halt mode halt mode is canceled by a non-maskable interrupt request, an unmasked maskable interrupt request, or the input of the resetz signal. (a) cancellation by interrupt request halt mode is canceled by a non-maskable interrupt request or by an unmasked maskable interrupt request regardless of the priority. the following table shows the operation performed after halt mode is canceled. table 6-1. operation after halt mode is canceled by interrupt request cancellation source interrupt enabled (ei) state interrupt disabled (di) state non-maskable interrupt request branch to handler address maskable interrupt request branch to handler address or execution of next instruction execution of next instruction the operation differs as follows if halt mode was set within the interrupt servicing routine. <1> when a low priority interrupt request is generated only halt mode is canceled. the interrupt request is not acknowledged (held pending). <2> when a high priority interrupt request (including a non-maskable interrupt request) is generated halt mode is canceled and the interrupt request is acknowledged. (b) cancellation by resetz signal input this is the same as a normal reset operation. caution be sure to input the resetz signal so that the setup and hold times referenced to the vbclk signal are satisfied.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 147 6.4 software stop mode in software stop mode, the cpu operation clock and the clock generator are stopped. the overall system is stopped, and ultra-low power consumption is achieved in which only leakage current is lost. (1) setting and operation status the NU85ET is switched to software stop mode by using a store instruction (st or sst instruction) or bit manipulation instruction (set1, clr1, or not1 instruction) to set the psc register. although program execution stops in software stop mode, the contents of all registers and of ram immediately before software stop mode began are maintained. the operation of all NU85ET-internal peripheral i/o is also stopped. (2) cancellation of software stop mode software stop mode is canceled by a non-maskable interrupt request, an unmasked maskable interrupt request, or the input of the resetz signal. (a) cancellation by interrupt request software stop mode is canceled by a non-maskable interrupt request not masked by the psc register or by an unmasked maskable interrupt request regardless of the priority. the following table shows the operation performed after software stop mode is canceled. caution an interrupt request that occurs while the nmi2m to nmi0m and intm bits of the power save control resister (psc) are set (interrupt disabled), is invalid (software stop mode is not canceled). table 6-2. operation after software stop mode is canceled by interrupt request cancellation source interrupt enabled (ei) state interrupt disabled (di) state non-maskable interrupt request branch to handler address maskable interrupt request branch to handler address or execution of next instruction execution of next instruction the operation shown in table 6-3 is performed if software stop mode was set within the interrupt servicing routine.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 148 table 6-3. operation after setting software stop mode in interrupt servicing routine cancellation source interrupt servicing routine type when software stop mode is set priority note 1 operation low same high (id = 1) note 2 software stop mode is canceled and the interrupt request is not acknowledged (held pending). maskable interrupt request high (id = 0) note 3 maskable interrupt non-maskable interrupt request ? software stop mode is canceled and the interrupt request is acknowledged. maskable interrupt request ? low same software stop mode is canceled and the interrupt request is not acknowledged (held pending). non-maskable interrupt non-maskable interrupt request high software stop mode is canceled and the interrupt request is acknowledged. notes 1. the priority order of the interrupts when software stop mode is set (interrupts that were being serviced). 2. when the id bit of the psw is 1 (interrupt acknowledgement disabled) 3. when the id bit of the psw is 0 (interrupt acknowledgement enabled) remark cancellation of software stop mode by nmi is performed regardless of the np bit value in the psw. (b) cancellation by resetz signal input this is the same as a normal reset operation. caution be sure to input the resetz signal so that the setup and hold times referenced to the vbclk signal are satisfied.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 149 6.5 hardware stop mode in hardware stop mode, the cpu operation clock and the clock generator are stopped. the overall system is stopped, and ultra-low power consumption is achieved in which only leakage current is lost. (1) setting and operation status the NU85ET is switched to hardware stop mode by inputting a low-level signal to the stopz pin. the NU85ET is switched to hardware stop mode even if a low-level signal is input to the stopz pin when the NU85ET is in halt mode or software stop mode. although program execution stops in hardware stop mode, the contents of all registers and of ram immediately before hardware stop mode began are maintained. the operation of all NU85ET-internal peripheral i/o is also stopped. remark the NU85ET may not switch to hardware stop mode correctly if the stopz input becomes active (low level) due to a read modify write, misalign access, etc. while the vmlock signal is locked. if the stopz input becomes low level in the bus lock state, an internal cpu of the NU85ET is stopped, but the hwstoprq signal, which controls the external clock generator, does not become active because the slave device connected to the locked bus may require clock supply. consequently, clock is not stopped and the NU85ET will not switch to hardware stop mode. if the system must be switched to hardware stop mode when the stopz input is low level, mask the stopz input by the vmlock signal to avoid switching to hardware stop mode while the bus is locked. (2) cancellation of hardware stop mode hardware stop mode is canceled by inputting the stopz or resetz signal. (a) cancellation by stopz signal input hardware stop mode is canceled when the input to the stopz pin goes from low level to high level. the mode to which the NU85ET switches after hardware stop mode is canceled differs as follows according to the status in effect before hardware stop mode was set. table 6-4. status after cancellation of hardware stop mode before hardware stop mode is set after hardware stop mode is canceled normal operation mode normal operation mode software stop mode normal operation mode halt mode halt mode (b) cancellation by resetz signal input this is the same as a normal reset operation. caution be sure to input the resetz signal so that the setup and hold times referenced to the vbclk signal are satisfied.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 150 6.6 clock control in software/hardware stop mode the NU85ET and clock controller are connected as follows. figure 6-4. connection of NU85ET and clock controller vbclk clock generator (cg) clk x2 x1 stprq stpak memory controller (memc) clock controller note swstoprq hwstoprq en NU85ET cgrel note design the clock controller as user logic. also, include a circuit for securing the oscillation stabilization time (see figures 6-5 and 6-6 ). caution in a system in which the memc is not connected to the NU85ET, handle the stpak pin in either of the following ways. ? ? ? ? always input a high level. ? ? ? ? connect user logic that outputs a high level to the stpak pin to the stprq output (high level) of the NU85ET. if a high level is not input to the stpak pin, the hwstoprq and swstoprq signals do not become active and shifting the stop mode becomes impossible.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 151 (1) clock control when setting or canceling software stop mode (a) when setting software stop mode (after software stop mode is set by setting the stp bit of the psc register) <1> set the stop mode request signal (stprq) to active (high level) and output it to the memory controller. <2> input the active level (high level) of the acknowledge signal (stpak) from the memory controller that received the stprq signal. <3> set the software stop mode request signal (swstoprq) to active (high level) and output it to the clock controller (use this swstoprq signal to stop the vbclk output from the clock controller). (b) when canceling software stop mode <1> input a non-maskable interrupt request (nmim), unmasked maskable interrupt request (intn), or the resetz signal (m = 2 to 0, n = 63 to 0). <2> set the software stop mode request signal (swstoprq) to inactive (low level) and output it to the clock controller (clock generator starts operation). <3> after the oscillation stabilization time has elapsed, input the active level (high level) of the cgrel signal from the clock controller simultaneous with the vbclk signal (the input of the vbclk signal returns the stprq and stpak outputs to low level). <4> after inputting the vbclk signal, input a high level to the resetz signal. caution input an active level (high level) to the cgrel pin for one clock or more. when setting the software stop mode again, be sure to input an inactive level (low level) to the cgrel pin before setting. remark a level latch is used for the resetz signal, which can therefore be input asynchronously to vbclk.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 152 figure 6-5. software stop mode set/cancel timing example (a) when software stop mode is canceled by nmim or intn input clk vbclk (input) stprq (output) stpak (input) swstoprq (output) nmim (input) intn (input) cgrel (input) oscillation stabilization time 1 clock or more remarks 1. the nmim and intn inputs are detected at the rising edge and the interrupt request is held in the cpu. 2. m = 2 to 0, n = 63 to 0 (b) when software stop mode is canceled by resetz input clk vbclk (input) stprq (output) stpak (input) swstoprq (output) resetz (input) cgrel (input) oscillation stabilization time 1 clock or more note note input a high level to the resetz pin after restarting input of vbclk.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 153 (2) clock control when setting or canceling hardware stop mode (a) when setting hardware stop mode <1> input the active level (low level) of the stopz signal. <2> set the stop mode request signal (stprq) to active (high level) and output it to the memory controller. <3> input the active level (high level) of the acknowledge signal (stpak) from the memory controller that received the stprq signal. <4> set the hardware stop mode request signal (hwstoprq) to active (high level) and output it to the clock controller (use this hwstoprq signal to stop the vbclk output from the clock controller). (b) when canceling hardware stop mode <1> input the resetz signal or the inactive level (high level) of the stopz signal. <2> set the hardware stop mode request signal (hwstoprq) to inactive (low level) and output it to the clock controller (clock generator starts operation). <3> after the oscillation stabilization time has elapsed, input the active level (high level) of the cgrel signal from the clock controller simultaneous with the vbclk signal (the input of the vbclk signal returns the stprq and stpak outputs to low level). caution input an active level (high level) to the cgrel pin for one clock or more. when setting the hardware stop mode again, be sure to input an inactive level (low level) to the cgrel pin before setting. remark a level latch is used for the resetz signal, which can therefore be input asynchronously to vbclk.
chapter 6 stbc preliminary user?s manual a15015ej3v0um 154 figure 6-6. hardware stop mode set/cancel timing example (a) when hardware stop mode is canceled by stopz input clk vbclk (input) stprq (output) stpak (input) hwstoprq (output) stopz (input) cgrel (input) 1 clock or more oscillation stabilization time (b) when hardware stop mode is canceled by resetz input clk vbclk (input) stprq (output) stpak (input) hwstoprq (output) stopz (input) cgrel (input) oscillation stabilization time 1 clock or more resetz (input) note 1 note 2 notes 1. input a high level to the resetz pin after restarting input of vbclk. 2. input a high level to the stopz pin before inputting a high level to the resetz pin.
preliminary user?s manual a15015ej3v0um 155 chapter 7 dmac the dma control unit (dmac) controls data transfers between memory and peripheral macros or between memory and memory based on dma transfer requests issued from the dmarq3 to dmarq0 pins or by software triggers (memory means ram or external memory). 7.1 features ? four independent dma channels ? transfer units: 8 bits, 16 bits, or 32 bits ? maximum transfer count: 65,536 (2 16 ) ? two transfer types flyby (1-cycle) transfer two-cycle transfer ? four transfer modes single transfer mode single-step transfer mode line transfer mode (four bus cycle transfer mode) (in 2-cycle transfer, the operation from read to write is repeated four times) block transfer mode ? transfer requests requests by dmarq3 to dmarq0 pin input requests by software ? transfer objects between ram note and peripheral macros between ram note and external memory between ram note and ram note between external memory and peripheral macros between external memory and external memory (transfer between little endian area and big endian area is possible) note ram directly connected to the vdb (refer to 7.2 configuration ) ? terminal count output signals (dmtco3 to dmtco0) ? next address setting function
chapter 7 dmac preliminary user?s manual a15015ej3v0um 156 7.2 configuration dma destination address register (ddanh / ddanl ) dma channel control register (dchcn ) dma source address register (dsanh / dsanl ) dma transfer count register (dbcn ) dma addressing control register (dadcn ) count control channel control address control data control ram memory controller NU85ET dmac bcu bbr dmtcon idmastp dmarqn dmactvn vsb npb vdb external memory peripheral macro peripheral macro remark n = 3 to 0
chapter 7 dmac preliminary user?s manual a15015ej3v0um 157 7.3 transfer objects (1) transfer types table 7-1 shows the relationships between transfer types and transfer objects. caution operation is not guaranteed when a transfer is performed using a combination of transfer source and transfer destination marked by an ?no? in table 7-1. table 7-1. relationships between transfer type and transfer object transfer destination two-cycle transfer flyby transfer vsb npb ram vsb npb ram vsb yes yes yes yes note no no npb yes yes yes no no no transfer source ram yes yes yes no no no note the transfer can be performed only when using the memc (nt85e500) associated with the flyby transfer. remark yes: transfer enabled no: transfer disabled vsb: external memory or peripheral macro on the vsb npb: peripheral macro on the npb ram: ram directly connected to the vdb (2) wait function table 7-2 shows the relationships between the wait function and transfer objects. table 7-2. relationships between wait function and transfer object transfer object wait function vsb set by memc (nt85e500, nt85e502) npb set by vswc register ram no wait 7.4 dma channel priorities dma channel prioritization is fixed as follows. dma channel 0 > dma channel 1 > dma channel 2 > dma channel 3 this prioritization is only valid in the ti state. during a block transfer, the channel used for transfer is never switched. during a single-step transfer, if a higher priority dma transfer request is generated during the period when the bus is released (ti), the higher priority dma transfer is performed.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 158 7.5 control registers 7.5.1 dma source address registers 0 to 3 (dsa0 to dsa3) these registers are used to set the dma transfer source addresses (28 bits each) for dma channel n (n = 0 to 3). they are divided into two 16-bit registers, dsanh and dsanl, respectively. since they are two-stage fifo-configuration buffer registers, the transfer source address of a new dma transfer can be set during a dma transfer (see 7.6 next address setting function ). when a flyby transfer is set according to the ttyp bit of dma addressing control register n (dadcn), the external memory addresses are set by the dsan register. at this time, any settings of dma destination address register n (ddan) are ignored. (1) dma source address registers 0h to 3h (dsa0h to dsa3h) these registers can be read or written in 16-bit units. figure 7-1. dma source address registers 0h to 3h (dsa0h to dsa3h) 1514131211109876543210 dsa0h ir 0 0 0 sa 27 sa 26 sa 25 sa 24 sa 23 sa 22 sa 21 sa 20 sa 19 sa 18 sa 17 sa 16 address fffff082h after reset undefined dsa1h ir 0 0 0 sa 27 sa 26 sa 25 sa 24 sa 23 sa 22 sa 21 sa 20 sa 19 sa 18 sa 17 sa 16 address fffff08ah after reset undefined dsa2h ir 0 0 0 sa 27 sa 26 sa 25 sa 24 sa 23 sa 22 sa 21 sa 20 sa 19 sa 18 sa 17 sa 16 address fffff092h after reset undefined dsa3h ir 0 0 0 sa 27 sa 26 sa 25 sa 24 sa 23 sa 22 sa 21 sa 20 sa 19 sa 18 sa 17 sa 16 address fffff09ah after reset undefined bit position bit name function 15 ir specifies the dma transfer source. 0: external memory or peripheral macro 1: ram 11 to 0 sa27 to sa16 sets the dma transfer source address (a27 to a16). during a dma transfer, the next dma transfer source address is held. for a flyby transfer, the external memory address is held. caution bits 14 to 12 of the dsa0h to dsa3h registers must be set to 0. the operation when these bits are set to 1 is not guaranteed.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 159 (2) dma source address registers 0l to 3l (dsa0l to dsa3l) these registers can be read or written in 16-bit units. figure 7-2. dma source address registers 0l to 3l (dsa0l to dsa3l) 1514131211109876543210 dsa0l sa 15 sa 14 sa 13 sa 12 sa 11 sa 10 sa 9 sa 8 sa 7 sa 6 sa 5 sa 4 sa 3 sa 2 sa 1 sa 0 address fffff080h after reset undefined dsa1l sa 15 sa 14 sa 13 sa 12 sa 11 sa 10 sa 9 sa 8 sa 7 sa 6 sa 5 sa 4 sa 3 sa 2 sa 1 sa 0 address fffff088h after reset undefined dsa2l sa 15 sa 14 sa 13 sa 12 sa 11 sa 10 sa 9 sa 8 sa 7 sa 6 sa 5 sa 4 sa 3 sa 2 sa 1 sa 0 address fffff090h after reset undefined dsa3l sa 15 sa 14 sa 13 sa 12 sa 11 sa 10 sa 9 sa 8 sa 7 sa 6 sa 5 sa 4 sa 3 sa 2 sa 1 sa 0 address fffff098h after reset undefined bit position bit name function 15 to 0 sa15 to sa0 sets the dma transfer source address (a15 to a0). during a dma transfer, the next dma transfer source address is held. for a flyby transfer, the external memory address is held.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 160 7.5.2 dma destination address registers 0 to 3 (dda0 to dda3) these registers are used to set the dma transfer destination addresses (28 bits each) for dma channel n (n = 0 to 3). they are divided into two 16-bit registers, ddanh and ddanl, respectively. since they are two-stage fifo-configuration buffer registers, the transfer destination address of a new dma transfer can be set during a dma transfer (see 7.6 next address setting function ). when a flyby transfer is set according to the ttyp bit of dma addressing control register n (dadcn), any setting of this register is ignored. (1) dma destination address registers 0h to 3h (dda0h to dda3h) these registers can be read or written in 16-bit units. figure 7-3. dma destination address registers 0h to 3h (dda0h to dda3h) 1514131211109876543210 dda0h ir 0 0 0 da 27 da 26 da 25 da 24 da 23 da 22 da 21 da 20 da 19 da 18 da 17 da 16 address fffff086h after reset undefined dda1h ir 0 0 0 da 27 da 26 da 25 da 24 da 23 da 22 da 21 da 20 da 19 da 18 da 17 da 16 address fffff08eh after reset undefined dda2h ir 0 0 0 da 27 da 26 da 25 da 24 da 23 da 22 da 21 da 20 da 19 da 18 da 17 da 16 address fffff096h after reset undefined dda3h ir 0 0 0 da 27 da 26 da 25 da 24 da 23 da 22 da 21 da 20 da 19 da 18 da 17 da 16 address fffff09eh after reset undefined bit position bit name function 15 ir specifies the dma transfer destination. 0: external memory or peripheral macro 1: ram 11 to 0 da27 to da16 sets the dma transfer destination address (a27 to a16). during a dma transfer, the next dma transfer destination address is held. for a flyby transfer, this is ignored. caution bits 14 to 12 of the dda0h to dda3h registers must be set to 0. the operation when these bits are set to 1 is not guaranteed.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 161 (2) dma destination address registers 0l to 3l (dda0l to dda3l) these registers can be read or written in 16-bit units. figure 7-4. dma destination address registers 0l to 3l (dda0l to dda3l) 1514131211109876543210 dda0l da 15 da 14 da 13 da 12 da 11 da 10 da 9 da 8 da 7 da 6 da 5 da 4 da 3 da 2 da 1 da 0 address fffff084h after reset undefined dda1l da 15 da 14 da 13 da 12 da 11 da 10 da 9 da 8 da 7 da 6 da 5 da 4 da 3 da 2 da 1 da 0 address fffff08ch after reset undefined dda2l da 15 da 14 da 13 da 12 da 11 da 10 da 9 da 8 da 7 da 6 da 5 da 4 da 3 da 2 da 1 da 0 address fffff094h after reset undefined dda3l da 15 da 14 da 13 da 12 da 11 da 10 da 9 da 8 da 7 da 6 da 5 da 4 da 3 da 2 da 1 da 0 address fffff09ch after reset undefined bit position bit name function 15 to 0 da15 to da0 sets the dma transfer destination address (a15 to a0). during a dma transfer, the next dma transfer destination address is held. for a flyby transfer, this is ignored.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 162 7.5.3 dma transfer count registers 0 to 3 (dbc0 to dbc3) these 16-bit registers are used to set the transfer count for dma channel n (n = 0 to 3). these registers hold the remaining transfer count during a dma transfer. since they are two-stage fifo-configuration buffer registers, the transfer count of a new dma transfer can be set during a dma transfer (see 7.6 next address setting function ). these registers are decremented by 1 for each transfer that is performed. transfer ends when a borrow occurs. these registers can be read or written in 16-bit units. note that in the case of line transfers, when the dbcn register is 0003h (4 transfers) this becomes one line transfer. for a setting in which the transfer count cannot be divided by 4, the sections that can be line transferred are (line) transferred first, then the remaining indivisible section is transferred as a single transfer. figure 7-5. dma transfer count registers 0 to 3 (dbc0 to dbc3) 1514131211109876543210 dbc0 bc 15 bc 14 bc 13 bc 12 bc 11 bc 10 bc 9 bc 8 bc 7 bc 6 bc 5 bc 4 bc 3 bc 2 bc 1 bc 0 address fffff0c0h after reset undefined dbc1 bc 15 bc 14 bc 13 bc 12 bc 11 bc 10 bc 9 bc 8 bc 7 bc 6 bc 5 bc 4 bc 3 bc 2 bc 1 bc 0 address fffff0c2h after reset undefined dbc2 bc 15 bc 14 bc 13 bc 12 bc 11 bc 10 bc 9 bc 8 bc 7 bc 6 bc 5 bc 4 bc 3 bc 2 bc 1 bc 0 address fffff0c4h after reset undefined dbc3 bc 15 bc 14 bc 13 bc 12 bc 11 bc 10 bc 9 bc 8 bc 7 bc 6 bc 5 bc 4 bc 3 bc 2 bc 1 bc 0 address fffff0c6h after reset undefined bit position bit name function sets the transfer count. during a dma transfer, the remaining transfer count is held. dbcn status 0000h transfer 1 or remaining transfer count 0001h transfer 2 or remaining transfer count ? ? ffffh transfer 65,536 (2 16 ) or remaining transfer count 15 to 0 bc15 to bc0 remark n = 0 to 3
chapter 7 dmac preliminary user?s manual a15015ej3v0um 163 7.5.4 dma addressing control registers 0 to 3 (dadc0 to dadc3) these 16-bit registers are used to control the dma transfer operation mode for dma channel n (n = 0 to 3). these registers can be read or written in 16-bit units. caution these registers cannot be accessed during a dma transfer. figure 7-6. dma addressing control registers 0 to 3 (dadc0 to dadc3) (1/2) 1514131211109876543210 dadc0 ds 1 ds 0 000000 sad 1 sad 0 dad 1 dad 0 tm1 tm0 ttyp tdir address fffff0d0h after reset 0000h dadc1 ds 1 ds 0 000000 sad 1 sad 0 dad 1 dad 0 tm1 tm0 ttyp tdir address fffff0d2h after reset 0000h dadc2 ds 1 ds 0 000000 sad 1 sad 0 dad 1 dad 0 tm1 tm0 ttyp tdir address fffff0d4h after reset 0000h dadc3 ds 1 ds 0 000000 sad 1 sad 0 dad 1 dad 0 tm1 tm0 ttyp tdir address fffff0d6h after reset 0000h bit position bit name function sets the transfer data size for a dma transfer. ds1 ds0 transfer data size 0 0 8 bits 0 1 16 bits 1 0 32 bits 1 1 setting prohibited 15, 14 ds1, ds0 cautions 1. bits ds1 and ds0 are used to set the number of bits of data to be transferred. which data bus line to be used is determined by the vmbenz3 to vmbenz0 signals. therefore, even if 8-bit data is set (ds1, ds0 = 0, 0), the lower data bus (data7 to data0) may not always be used. when the transfer data size is set to 16 bits, transfer must be started from the address with the lowest bit aligned to 0, and from the address with the lowest two bits aligned to 0 in the case of 32 bits. in both cases, transfer starting at an odd address is not possible. 2. bits 13 to 8 of the dadc0 to dadc3 registers must be set to 0. the operation when these bits are set to 1 is not guaranteed.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 164 figure 7-6. dma addressing control registers 0 to 3 (dadc0 to dadc3) (2/2) bit position bit name function sets the count direction of the transfer source addresses for dma channel n (n = 0 to 3). sad1 sad0 count direction 0 0 increment 0 1 decrement 10fixed 1 1 setting prohibited 7, 6 sad1, sad0 sets the count direction of the transfer destination addresses for dma channel n (n = 0 to 3). dad1 dad0 count direction 0 0 increment 0 1 decrement 10fixed 1 1 setting prohibited 5, 4 dad1, dad0 sets the transfer mode used for dma transfers. tm1 tm0 transfer mode 0 0 single transfer mode 0 1 single-step transfer mode 1 0 line transfer mode 1 1 block transfer mode 3, 2 tm1, tm0 1 ttyp sets the dma transfer type. 0: two-cycle transfer 1: flyby transfer note 0 tdir sets the transfer direction used for transfers between peripheral macros and external memory. the setting is valid only for flyby transfers and is ignored for 2- cycle transfers. 0: external memory to peripheral macro (read) 1: peripheral macro to external memory (write) remark n = 0 to 3 note valid only when using an memc that supports flyby transfer.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 165 7.5.5 dma channel control registers 0 to 3 (dchc0 to dchc3) these 8-bit registers are used to control the dma transfer operation mode for dma channel n (n = 0 to 3). these registers can be read or written in 8-bit or 1-bit units (however bit 7 can only be read and bits 2 and 1 can only be written. if bits 2 and 1 are read, the value 0 is read). figure 7-7. dma channel control registers 0 to 3 (dchc0 to dchc3) 76543210 dchc0 tc0 0 0 0 mle0 init0 stg0 en0 address fffff0e0h after reset 00h dchc1 tc1 0 0 0 mle1 init1 stg1 en1 address fffff0e2h after reset 00h dchc2 tc2 0 0 0 mle2 init2 stg2 en2 address fffff0e4h after reset 00h dchc3 tc3 0 0 0 mle3 init3 stg3 en3 address fffff0e6h after reset 00h bit position bit name function 7 tcn this is a status bit that indicates whether or not dma transfer has ended for dma channel n. this bit can only be read. this bit is set (1) during the last transfer read cycle of dma transfer. it is cleared (0) when it is read. 0: dma transfer has not ended 1: dma transfer has ended 3 mlen if this bit is set (1) when a terminal count is output, the enn bit is not cleared (0), and the status in which dma transfer is enabled continues. also, the next dma transfer request is acknowledged even if the tcn bit is not read. when dma transfer is requested by setting the stgn bit, the tcn bit must be read and cleared (0) even if the mlen bit is set (1). if this bit is cleared (0) when a terminal count is output, the enn bit is cleared (0), and the status in which dma transfer is disabled occurs. when the next dma transfer request is made, if the tcn bit is read, the enn bit must be set (1). 2 initn if this bit is set (1), the dma transfer is forcibly terminated. 1 stgn if this bit is set (1) during the status in which dma transfer is enabled (tcn bit = 0, enn bit = 1), the dma transfer begins. 0 enn sets whether dma transfer is enabled or disabled for dma channel n. this bit is cleared (0) when the dma transfer is completed. it is also cleared (0) when an idmastp signal is input or when transfer is forcibly terminated by setting (1) the initn bit. 0: dma transfer is disabled 1: dma transfer is enabled cautions 1. setting the mlen bit (1) is valid only for a dma transfer (hardware dma) started by a request generated by the dmarqn pin input. therefore, the mlen bit cannot be used for dma transfer (software dma) started by setting the stgn bit (1) (the software dma operation with the mlen bit set (1) is not guaranteed). 2. bits 6 to 4 of the dchc0 to dchc3 registers must be set to 0. the operation when these bits are set to 1 is not guaranteed. remark n = 0 to 3
chapter 7 dmac preliminary user?s manual a15015ej3v0um 166 7.5.6 dma disable status register (ddis) this register maintains the contents of the enn bit of the dchcn register when an idmastp signal is input (n = 0 to 3). this register is read-only in 8-bit or 1-bit units. figure 7-8. dma disable status register (ddis) 76543210 ddis0000ch3ch2ch1ch0 address fffff0f0h after reset 00h bit position bit name function 3 to 0 ch3 to ch0 reflects the contents of the enn bit of the dchcn register when an idmastp signal is input. the contents of this register are maintained until the next idmastp signal is input or a system reset occurs. caution bits 7 to 4 of the ddis register must be set to 0. the operation when these bits are set to 1 is not guaranteed. remark n = 0 to 3 7.5.7 dma restart register (drst) this register is used to restart a dma transfer that was forcibly interrupted by inputting the idmastp signal. the enn bits of this register are linked respectively with the enn bits of the dchcn registers (n = 0 to 3). after a dma transfer was forcibly interrupted by inputting the idmastp signal, the dma channel for which the transfer was interrupted is confirmed from the contents of the ddis register, and the dma transfer can be restarted by setting (1) the enn bit of the corresponding dma channel. this register can be read or written in 8-bit or 1-bit units. figure 7-9. dma restart register (drst) 76543210 drst0000en3en2en1en0 address fffff0f2h after reset 00h bit position bit name function 3 to 0 en3 to en0 sets whether dma transfer is enabled or disabled for dma channel n. this bit is cleared (0) when the dma transfer ends due to the output of a terminal count. it is also cleared (0) when the idmastp signal is input or when dma transfer is forcibly terminated by setting (1) the initn bit of the dchcn register. 0: dma transfer is disabled 1: dma transfer is enabled caution bits 7 to 4 of the drst register must be set to 0. the operation when these bits are set to 1 is not guaranteed. remark n = 0 to 3
chapter 7 dmac preliminary user?s manual a15015ej3v0um 167 7.6 next address setting function the dma source address registers (dsanh and dsanl), dma destination address registers (ddanh and ddanl), and dma transfer count registers (dbcn) are two-stage fifo-configuration buffer registers (n = 0 to 3). when a terminal count signal (dmtcon) is output, these registers are automatically rewritten with the values that were set just before the signal was output. therefore, if a new dma transfer is set for these registers during a dma transfer, the transfer can begin only when the enn bit of the dchcn register is set (1). figure 7-10 shows the buffer register configuration. figure 7-10. buffer register configuration master register reading of data slave register address/ count controller n p b writing of data
chapter 7 dmac preliminary user?s manual a15015ej3v0um 168 7.7 dma bus state 7.7.1 bus state types dmac bus cycles consist of the 13 states shown below. (1) ti state this is an idle state in which there is no access request. the dmarq3 to dmarq0 signals are sampled at the rising edge of the vbclk signal. (2) t0 state this is the dma transfer ready state (there is a dma transfer request, and the bus access right has been acquired for the first dma transfer). (3) t1r state this is the state to which the dmac moves first for a 2-cycle transfer read. address driving begins. after the t1r state, the dmac always shifts to the t2r state. (4) t1ri state this is the state in which the dmac is awaiting an acknowledge signal for an external memory read request. after the last t1ri state, the dmac always shifts to the t2r state. (5) t2r state this is a wait state or the last state of a 2-cycle transfer read. in the last t2r state, read data is sampled. after the read data is sampled, the dmac always shifts to the t1w state. (6) t2ri state this is the dma transfer ready state for a dma transfer to ram (the bus access right has been acquired for a dma transfer to ram). after the last t2ri state, the dmac always shifts to the t1w state. (7) t1w state this is the state to which the dmac moves first for a 2-cycle transfer write. address driving begins. after the t1w state, the dmac always shifts to the t2w state. (8) t1wi state this is the state in which the dmac is awaiting an acknowledge signal for an external memory write request. after the last t1wi state, the dmac always shifts to the t2w state. (9) t2w state this is a wait state or the last state of a 2-cycle transfer write. in the last t2w state, the write strobe signal is made inactive. (10) t1fh state this is the basic state of a flyby transfer and is the execution cycle of that transfer. after the t1fh state, the dmac shifts to the t2fh state.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 169 (11) t1fhi state this is the last state of a flyby transfer, and the dmac is awaiting the end of the transfer. after the t1fhi state, the bus is released, and the dmac shifts to the te state. (12) t2fh state this is the state in which the dmac judges whether or not to continue flyby transfers. if the next transfer is executed in block transfer mode, the dmac shifts to the t1fh state after the t2fh state. in other modes, if a wait has occurred, the dmac shifts to the t1fhi state. if no wait has occurred, the bus is released, and the dmac shifts to the te state. (13) te state this is the state in which the dma transfer is completed. the dmac generates a terminal count signal (dmtcon) and initializes other types of internal signals (n = 3 to 0). after the te state, the dmac always shifts to the ti state.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 170 7.7.2 dmac bus cycle state transitions figure 7-11. dmac bus cycle state transition diagram (a) two-cycle transfer t1w t2ri t1r t0 ti t1ri t2r t1wi t2w te ti (b) flyby transfer ti ti t0 t1fh t2fh t1fhi te
chapter 7 dmac preliminary user?s manual a15015ej3v0um 171 7.8 transfer modes 7.8.1 single transfer mode in single transfer mode, the dmac releases the bus after each byte, halfword, or word transfer. if there is a subsequent dma transfer request, a single transfer is performed again. this operation continues until a terminal count occurs. if a higher priority dma transfer request is generated while the dmac has released the bus, the higher priority dma transfer request always takes precedence. however, if a lower priority dma transfer request is generated within one clock after the end of a single transfer, even if the previous higher priority dma transfer request signal stays active, this request is not prioritized, and the next dma transfer after the bus is released for the cpu is a transfer based on the newly generated, lower priority dma transfer request. figures 7-12 to 7-15 show examples of single transfer. figure 7-12. single transfer example 1 cpu dma3 cpu cpu dma3 cpu cpu cpu cpu cpu dma3 cpu dma3 dma3 cpu cpu cpu dmarq3 (input) cpu cpu dma channel 3 terminal count note note note note note the bus is always released. figure 7-13 shows a single transfer mode example in which a higher priority dma transfer request is generated. dma channels 0 to 2 are used for a block transfer, and channel 3 is used for the single transfer. figure 7-13. single transfer example 2 dma1 dma2 cpu dma2 cpu dma3 cpu cpu cpu dma3 cpu dma0 dma0 cpu dma1 dmarq3 (input) cpu dma3 dmarq2 (input) dmarq1 (input) dmarq0 (input) note note note note dma channel 0 terminal count dma channel 2 terminal count dma channel 3 terminal count dma channel 1 terminal count note the bus is always released.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 172 figure 7-14 shows a single transfer mode example in which a lower priority dma transfer request is generated within one clock after the end of a single transfer. dma channels 0 and 3 are used for the single transfer. when two dma transfer request signals are activated at the same time, the two dma transfers are performed alternately. figure 7-14. single transfer example 3 cpu cpu dma3 dma0 cpu dma0 cpu cpu cpu cpu dma0 cpu dma0 dma3 cpu cpu dma0 dmarq3 (input) cpu dma0 dma channel 0 terminal count note note note note dmarq0 (input) dma channel 3 terminal count note note note note the bus is always released. figure 7-15 shows a single transfer mode example in which two or more lower priority dma transfer requests are generated within one clock after the end of a single transfer. dma channels 0, 2, and 3 are used for the single transfer. when three or more dma transfer request signals are activated at the same time, always the two highest priority dma transfers are performed alternately. figure 7-15. single transfer example 4 dma2 cpu dma3 cpu cpu dma3 cpu cpu dma2 dma0 cpu dmarq3 (input) dma0 note note note dmarq2 (input) note note dmarq0 (input) dma2 cpu dma channel 0 terminal count note dma3 cpu dma2 cpu cpu dma3 dma channel 3 terminal count note cpu cpu note dma channel 2 terminal count note note the bus is always released.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 173 7.8.2 single-step transfer mode in single-step transfer mode, the dmac releases the bus after each byte, halfword, or word transfer. once a dma transfer request signal (dmarq3 to dmarq0) is received, this operation continues until a terminal count occurs. if a higher priority dma transfer request is generated while the dmac has released the bus, the higher priority dma transfer request always takes precedence. figures 7-16 and 7-17 show examples of single-step transfer. figure 7-16. single-step transfer example 1 dma1 cpu cpu cpu cpu cpu cpu cpu cpu dma1 cpu cpu dma1 dma1 cpu dmarq1 (input) cpu cpu dma channel 1 terminal count note note note note the bus is always released. figure 7-17. single-step transfer example 2 dma0 dma0 cpu cpu dma1 cpu cpu cpu cpu dma1 cpu cpu dma1 dma0 cpu dmarq1 (input) dma1 cpu dmarq0 (input) dma channel 0 terminal count dma channel 1 terminal count note note note note note note note the bus is always released.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 174 7.8.3 line transfer mode in line transfer mode, the dmac releases the bus after every four byte, halfword, or word transfers. if there is a subsequent dma transfer request, four transfers are performed again. this operation continues until a terminal count occurs. in 2-cycle transfer, the operation from read to write is repeated four times. if a higher priority dma transfer request is generated while the dmac has released the bus, the higher priority dma transfer request always takes precedence. however, if a lower priority dma transfer request is generated within one clock after the end of a line transfer, even if the previous higher priority dma transfer request signal stays active, this request is not prioritized, and the next dma transfer after the bus is released for the cpu is a transfer based on the newly generated, lower priority dma transfer request. figures 7-18 to 7-21 show examples of line transfer. figure 7-18. line transfer example 1 dmarq3 (input) dma3 dma3 cpu dma3 dma3 dma3 cpu cpu dma3 cpu dma3 dma3 dma3 dma3 cpu dma3 dma3 cpu cpu dma channel 3 terminal count note note note the bus is always released. figure 7-19 shows a line transfer mode example in which a higher priority dma transfer request is generated. dma channels 0 to 2 are used for a block transfer, and channel 3 is used for the line transfer. figure 7-19. line transfer example 2 dma1 dma2 cpu dma2 cpu dma3 dma3 cpu dma0 dma0 cpu dma1 cpu cpu cpu cpu dmarq3 (input) dmarq2 (input) dmarq1 (input) dmarq0 (input) note note note note dma3 dma3 dma channel 0 terminal count dma channel 2 terminal count dma channel 1 terminal count dma3 dma3 dma3 dma3 note dma channel 3 terminal count note the bus is always released.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 175 figures 7-20 and 7-21 show line transfer mode examples in which a lower priority dma transfer request is generated within one clock after the end of a line transfer. when two dma transfer request signals are activated at the same time, the two dma transfers are performed alternately. dma channels 0 and 3 in figure 7-20 are used for line transfer. figure 7-20. line transfer example 3 dma3 cpu dma0 cpu dma0 dma0 dma0 dma3 cpu dma3 dma3 dmarq3 (input) dma0 note note dmarq0 (input) dma0 dma0 dma channel 0 terminal count cpu dma3 dma3 dma3 cpu dma3 dma channel 3 terminal count note cpu dma0 note the bus is always released. dma channel 0 in figure 7-21 is used for a single transfer, and channel 3 is used for the line transfer. figure 7-21. line transfer example 4 dma3 cpu cpu cpu dma0 cpu dma0 dma3 cpu dma3 dma3 dmarq3 (input) dma0 note note dmarq0 (input) dma3 dma3 dma channel 3 terminal count dma3 dma3 cpu dma0 cpu cpu dma channel 0 terminal count cpu note note note note the bus is always released.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 176 7.8.4 block transfer mode in block transfer mode, once transfer begins, the transfers continue without releasing the bus until a terminal count occurs. no other dma transfer requests are acknowledged during a block transfer. after the block transfer ends and the dmac has released the bus, another dma transfer can be acknowledged. although it is prohibited to insert a cpu bus cycle during a block transfer, bus mastership can be transferred even during a block transfer in response to a request by the external bus master (including sdram refresh). figure 7-22 shows a block transfer mode example in which a higher priority dma transfer request is generated. dma channels 2 and 3 are used for the block transfer. figure 7-22. block transfer example dma3 cpu dma3 dma2 dma2 dma2 cpu cpu cpu dma3 dma3 dma3 dma3 dma3 dma3 dmarq3 (input) dma2 dma2 dma channel 3 terminal count dmarq2 (input) the bus is always released
chapter 7 dmac preliminary user?s manual a15015ej3v0um 177 7.8.5 one-time transfer when executing single transfers using dmarqn signal (1) two-cycle transfer when executing single transfers to the external memory using the dmarqn signal input, the next dmarqn signal is acknowledged when its sampling is started at the rise of vbclk at three clocks following the completion of the write cycle of the current 2-cycle transfer. actually, when the specified dmarqn setup time is satisfied after vbclk falls at 2.5 clocks after completion of the write cycle, the next dmarqn signal request is acknowledged. therefore, in order to transfer only once, it is recommended that the dmarqn signal be made inactive within 2 clocks of the end of the write cycle of a 2-cycle single transfer (n = 3 to 0). during a dma transfer in which the destination is the ram connected to the vdb, the dmactvn signal does not become active during transfer to ram, so if the transfer destination (write cycle) is ram, the timing when the write cycle ends cannot be determined (n = 3 to 0). when executing a single transfer, whether from memory to ram or from ram to memory, the dmactvn signal becomes active during the memory transfer. in this case, therefore, it is recommended that the dmarqn signal be made inactive within 2 clocks after the dmactvn signal becomes inactive. figure 7-23. one-time transfer when executing single transfers using dmarqn signal vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwait (input) vbdi31 to vbdi0 (input) vbclk (input) dmarqn (input) dmactvn (output) read cycle write cycle 2-cycle single transfer the dmarqn signal must be inactive by this point (0,0) (1,0) (0,0) (1,0) (1,1) (1,1) vbdo31 to vbdo0 (output) vmwrite (output) vmstz (output) vbdc (output) a.0 a.1 d.0 (0,0) d.1 vbdv (output) sampling of dmarqn signal started remark o mark: sampling timing a.x: arbitrary address output from the vma27 to vma0 pins d.x: i/o data for address ?a.x? : arbitrary input level n = 3 to 0
chapter 7 dmac preliminary user?s manual a15015ej3v0um 178 (2) flyby transfer similar to the 2-cycle transfer, the next dmarqn signal is acknowledged when its sampling is started at the rise of vbclk three clocks following the completion of the write cycle of the current 2-cycle transfer. actually, when the specified dmarqn setup time is satisfied after vbclk falls 2.5 clocks after completion of the write cycle, the next dmarqn signal request is acknowledged. therefore, in order to transfer only once, it is recommended that the dmarqn signal be made inactive within 2 clocks of the end of the write cycle of a 2-cycle single transfer (n = 3 to 0). 7.9 transfer types 7.9.1 two-cycle transfer in a 2-cycle transfer, data is transferred in 2 cycles: a read cycle (transfer source to dmac) and a write cycle (dmac to transfer destination). in the first cycle, the transfer source address is output to read data from the transfer source to the dmac. in the second cycle, the transfer destination address is output to write data from the dmac to the transfer destination. the signals indicating 2-cycle dma transfer (1, 1, 0) are output from the vmctyp2 to vmctyp0 pins. caution a one-clock idle cycle is always inserted between a read cycle and a write cycle. figure 7-24. example of two-cycle transfer memory (transfer source) a ce oe d memory (transfer destination) a ce d we vbdi31 to vbdi0 NU85ET vdcszn vbdo31 to vbdo0 vma25 to vma0 vmctyp2 to vmctyp0 a25 to a0 cszn di31 to di0 rdz nt85e500 cszn wrz vbdo31 to vbdo0 vbdi31 to vbdi0 vdcszn vba25 to vba0 vbctyp2 to vbctyp0 do31 to do0 remark n = 7 to 0
chapter 7 dmac preliminary user?s manual a15015ej3v0um 179 7.9.2 flyby transfer a flyby transfer can be executed only when the memc supports flyby transfers. flyby transfer executes a transfer from memory to i/o or from i/o to memory in one cycle. the NU85ET always outputs the address on the memory side set in the dsanh or dsanl registers for either transfer from memory to i/o or from i/o to memory (n = 3 to 0). the strobe signal to the memory or to the external i/o simultaneously makes the rdz/iowrz and wrz/iordz signals active during transfer from memory to i/o and from i/o to memory, respectively. signals indicating dma flyby transfer (1, 1, 1) are also output from the vmctyp2 to vmctyp0 pins. only the data bus on the memory side of the memory controller is used for data, so the vbdi31 to vbdi0 and vbdo31 to vbdo0 signals, which are for vsb data, are not used. the external i/o is selected according to the dmactv3 to dmactv0 signals. caution when na85e535 is used as a memory controller, flyby transfer with sdram is possible, except in a system in which the sdram controller (nt85e502) is connected to the nt85e500. figure 7-25. example of flyby transfer (memory to i/o) memory (transfer source) a cs d i/o (transfer destination) d we oe NU85ET vdcszn vma25 to vma0 vmctyp2 to vmctyp0 a25 to a0 cszn rdz nt85e500 iowrz vdcszn vba25 to vba0 vbctyp2 to vbctyp0 dmactvn cs remark n = 7 to 0
chapter 7 dmac preliminary user?s manual a15015ej3v0um 180 7.10 dma transfer start factors dma transfer can be started by the following two factors. (1) request by external pin (dmarqn) if the enn bit of the dchcn register is set to 1 and the tcn bit is set to 0, the dmarqn signal becomes active in ti state (n = 3 to 0). if the dmarqn signal becomes active in ti state, the dmac moves to t0 state and dma transfer begins. (2) request by software if the stgn, enn, and tcn bits of the dchcn register are set as follows, dma transfer begins (n = 0 to 3). ? stgn bit = 1 ? enn bit = 1 ? tcn bit = 0
chapter 7 dmac preliminary user?s manual a15015ej3v0um 181 7.11 terminal count output when dma transfer is complete the terminal count signal (dmtcon) becomes active for only one clock in the final dma transfer cycle (n = 3 to 0). figure 7-26. timing example of terminal count signals (dmtco3 to dmtco0) cpu cpu cpu dman dman dman dma channel n terminal count cpu dmarqn (input) dmtcon (output) remark n = 3 to 0 during 2-cycle transfer, the terminal count signal becomes active for one clock at the beginning of the last write cycle. during flyby transfer, the signal becomes active for one clock at the beginning of the last transfer cycle. figure 7-27. example of terminal count signal output (dmtco3 to dmtco0) (1) two-cycle transfer vbclk (input) dmtcon (output) read cycle write cycle two-cycle transfer cycle (last) (2) flyby transfer vbclk (input) dmtcon (output) flyby transfer cycle (last) remark n = 3 to 0
chapter 7 dmac preliminary user?s manual a15015ej3v0um 182 7.12 forcible interruption dma transfer can be forcibly interrupted by inputting the idmastp signal during the dma transfer. at this time, the dmac clears (0) the enn bit of the dchcn register of all channels to set the state in which dma transfer is disabled, completes the dma transfer that was being executed when the idmastp signal was input, and releases the bus to the cpu (n = 0 to 3). for single-step transfer mode, block transfer mode, or line transfer mode, the dma transfer request is held in the dmac. when the enn bit is set (1), the dma transfer is restarted from the point at which the dma transfer was interrupted. for single transfer mode, when the enn bit is set (1), the next dma transfer request is acknowledged and dma transfer begins. caution to forcibly interrupt dma transfer and stop the next transfer from occurring, the idmastp signal must be made active before the end of the dma transfer currently under execution. moreover, although it is possible to restart dma transfer following an interruption, this transfer cannot be executed under new settings (new conditions). execute dma transfer under new settings either after the end of the current transfer or after transfer has been forcibly terminated by setting the initn bit of the dchcn register (n = 0 to 3). figure 7-28. dma transfer forcible interruption example dma transfer dma transfer suspended dma transfer dma transfer suspended 01h ddis register 01h drst register en0 bit of dchc register transfer restart forcible interruption forcible interruption idmastp (input)
chapter 7 dmac preliminary user?s manual a15015ej3v0um 183 7.13 forcible termination by setting (1) the initn bit of the dchcn register during a dma transfer, it is possible to forcibly terminate the dma transfer under execution. the following is an example of the operation of a forcible termination (n = 0 to 3). caution the setting (1) of the initn bit is performed when the vsb has been released to the cpu (n = 0 to 3). therefore, because the vsb is locked until the dma transfer has completely finished in a block transfer using the vsb, it is not possible to exercise a forcible termination during this transfer. figure 7-29. dma transfer forcible termination example (1/2) (a) block transfer using dma channel 3 begins during block transfer using dma channel 2 cpu dma3 dma3 dma3 dma3 cpu cpu cpu cpu cpu dma2 dma2 dma2 dma2 dma2 dmarq3 (input) cpu cpu dmarq2 (input) en3 bit = 1 tc3 bit = 0 en3 bit 0 tc3 bit 1 dsa3, dda3, dbc3, dadc3, dchc3 set register en2 bit = 1 tc2 bit = 0 dsa2, dda2, dbc2, dadc2, dchc2 set register dchc2 (init2 bit = 1) set register en2 bit 0 tc2 bit = 0 dma channel 3 terminal count dma channel 3 transfer begins dma channel 2 transfer is forcibly terminated and the bus is released
chapter 7 dmac preliminary user?s manual a15015ej3v0um 184 figure 7-29. dma transfer forcible termination example (2/2) (b) the transfer is forcibly terminated during block transfer using dma channel 1 and a transfer with another condition is executed dma1 cpu cpu cpu cpu dma1 cpu cpu cpu cpu dma1 dma1 dma1 dma1 dma1 dmarq1 (input) dma1 dma1 dma channel 1 terminal count dma channel 1 transfer is forcibly terminated and the bus is released en1 bit = 1 tc1 bit = 0 en1 bit 0 tc1 bit 1 dsa1, dda1, dbc1, dadc1, dchc1 set register cpu dsa1, dda1, dbc1 set register dchc1 (init1 bit = 1) set register dadc1, dchc1 set register en1 bit 0 tc1 bit = 0 en1 bit 1 tc1 bit = 0 remark since the dsan, ddan, and dbcn registers are buffer registers with an fifo configuration, the values are retained even after a forcible termination. also, the next transfer condition can be set even during a dma transfer. however, a setting in the dadcn register is ignored (see 7.6 next address setting function ).
chapter 7 dmac preliminary user?s manual a15015ej3v0um 185 7.14 dma transfer timing examples examples of the dma transfer timing in each transfer mode are shown in the following pages. the nt85e500 and the nt85e502 are provided as memcs for the NU85ET. this section gives examples of when the nt85e500 and the nt85e502 are used. (1) two-cycle transfer figures 7-30 to 7-33 show examples of the timing of 2-cycle transfers between external srams connected to the memc (nt85e500). figures 7-34 and 7-35 show examples of the timing of 2-cycle transfers between ram connected to the vdb and sdram connected to the memc (nt85e502). remarks 1. the levels of the broken-line portions of the vmctyp2 to vmctyp0, vmseq2 to vmseq0, vmsize1, vmsize0, di31 to di0, and do31 to do0 signals indicate an undefined state. 2. the o marks indicate the sampling timing. 3. n = 3 to 0 figure 7-30 shows an example of the timing of a 2-cycle single transfer (between external srams connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0001h (2 transfers) ? asc register note = 0000h (no address setting wait states) ? bcc register note = 0000h (no idle states) ? dwc0 register note = 7377h (cs2 wait states = 3) note an nt85e500 register.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 186 figure 7-30. example of two-cycle single transfer timing (between external srams connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 0h 2h 3h 0h 2h 0h 3h 2h 3h 0h 2h 3h 0h fh 0h fh 0h fh 0h fh 0h fh 6h 6h 6h 6h 0h 0h 0h 0h 2h 2h 2h 2h ffh fbh ffh fbh ffh fbh ffh fbh ffh l l fh 0h 0h fh fh ffh fbh ffh fbh ffh fbh ffh fbh ffh read cycle write cycle 2-cycle single transfer cpu cycle read cycle write cycle 2-cycle single transfer do31 to do0 (output) note vbdo31 to vbdo0 (output) vbdv (output) note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 187 figure 7-31 shows an example of the timing of a 2-cycle single-step transfer (between external srams connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0002h (3 transfers) ? asc register note = 0000h (no address setting wait states) ? bcc register note = 0000h (no idle states) ? dwc0 register note = 7377h (cs2 wait states = 3) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 188 figure 7-31. example of two-cycle single-step transfer timing (between external srams connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 2h 3h 2h 0h 2h 0h 3h 2h 3h 0h 2h 3h 0h fh 0h fh 0h fh 0h 6h 6h 6h 6h 0h 0h 0h 0h 2h 2h 2h 2h fbh ffh fbh ffh fbh ffh fbh l l fh 0h 0h fh 1st 2-cycle single-step transfer (3 times) 2nd 0h 0h 2h 3h 0h 2h 3h 0h 3rd fh 6h 0h 2h 6h 0h 2h fh 0h fh 0h fh ffh fbh ffh fbh ffh ffh 0h fh fh fbh ffh fbh ffh fbh ffh fbh ffh fbh ffh fbh ffh ffh vbdo31 to vbdo0 (output) do31 to do0 (output) note vbdv (output) note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 189 figure 7-32 shows an example of the timing of a 2-cycle line transfer (between the external srams connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0007h (8 transfers) ? asc register note = 0000h (no address setting wait states) ? bcc register note = 0000h (no idle states) ? dwc0 register note = 7077h (no cs2 wait states) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 190 figure 7-32. example of two-cycle line transfer timing (between external srams connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 2h 2h 0h 0h fh fh fh l l fh 1st 2-cycle line transfer 0h 0h fh ffh 3h 2h 3h 2h 0h 3h 2h 3h 2nd 2h 0h 3h 2h 3h 3rd 0h 2h 0h 3h 2h 3h 0h 2h 0h 3h 2h 3h 0h 4th 5th next line transfer 0h 0h fh 0h 0h fh 0h fh 0h fh 0h fh 0h fh 0h 0h fh 6h 6h 6h 6h 6h 0h 0h 0h 0h 0h 0h 2h 2h 2h 2h 2h 6h 6h 6h 0h 0h 2h 2h 6h 6h 0h 0h 2h 2h 2h fbh ffh ffh fbh fbh ffh fbh ffh ffh fbh ffh fbh fbh ffh ffh fbh fbh ffh fbh ffh l 0h 0h fh 0h fh 0h fh 0h fh fh ffh fbh ffh ffh fbh fbh ffh ffh fbh fbh ffh ffh fbh fbh ffh ffh fbh fbh ffh fbh ffh cpu cycle vbdo31 to vbdo0 (output) do31 to do0 (output) note vbdv (output) note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 191 figure 7-33 shows an example of the timing of a 2-cycle block transfer (between the external srams connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0006h (7 transfers) ? asc register note = 0000h (no address setting wait states) ? bcc register note = 0000h (no idle states) ? dwc0 register note = 7077h (no cs2 wait states) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 192 figure 7-33. example of two-cycle block transfer timing (between external srams connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 0h fh l l fh 1st 2-cycle block transfer (7 times) 0h fh ffh 2h 2h 0h 3h 2h 3h 2nd 4th 0h 0h 6h 6h 6h 6h 6h 0h 0h 0h 0h 0h 0h 2h 2h 2h 2h 2h 6h 6h 6h 0h 0h 2h 2h 6h 6h 0h 0h 2h 2h 2h fbh ffh fbh fbh ffh fbh fbh ffh fbh fbh ffh fbh fbh 0h 0h 0h 0h 0h ffh fbh fbh fbh ffh fbh fbh ffh fbh fbh ffh fbh fbh 2h 2h 0h 3h 2h 3h 0h 2h 2h 0h 3h 2h 3h 3rd 0h 2h 2h 0h 3h 2h 3h 0h 2h 2h 0h 3h 2h 3h 0h 2h 2h 0h 3h 2h 3h 0h 2h 2h 0h 3h 2h 3h 5th 6th 7th fh 0h fh 0h fh 0h fh 0h fh 0h fh 0h fh 0h fh 0h fh 0h fh 0h fh 0h fh 0h 0h fh 6h 6h 6h 6h 0h 2h 0h 2h 0h 2h 0h 2h fbh ffh ffh ffh fbh ffh ffh fbh ffh ffh fbh ffh fbh ffh ffh fh fh 0h fh fh fh 0h fh fh ffh ffh fbh ffh ffh fbh ffh ffh fbh ffh ffh fbh fbh ffh ffh ffh vbdo31 to vbdo0 (output) do31 to do0 (output) note vbdv (output) note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 193 figure 7-34 shows an example of the timing of a 2-cycle single transfer (from ram connected to the vdb to sdram connected to the nt85e502). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0001h (2 transfers) ? scrn register note = 2062h (cas latency = 2, number of wait states = 1, address shift width = 2 bits (32-bit data bus), low address width = 11 bits, address multiplexed width = 10 bits) note an nt85e502 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 194 2. these are nt85e502 signals. figure 7-34. example of two-cycle single transfer timing (from ram connected to vdb to sdram connected to nt85e502) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note 2 sdrasz (output) note 2 a25 to a0 (output) note 2 vmseq2 to vmseq0 (output) vbclk (input) sdclk (output) note 1 dmarqn (input) dmactvn (output) dmtcon (output) sdwez (output) note 2 csz7 to csz0 (output) note 1 vmlock (output) 2h 3h 0h 2h 3h ffh l l read cycle write cycle 2-cycle single transfer cpu cycle sdcasz (output) note 2 dqm3 to dqm0 (output) note 2 fh 0h iramen (output) 0h read cycle write cycle 2-cycle single transfer 0h fh 0h fh 0h fh 6h 6h 0h 0h 2h 2h ffh bfh bfh ffh l h 0h fh ffh ffh bfh bfh ffh fh vbdo31 to vbdo0 (output) do31 to do0 (output) note 1 vbdv (output) l l vbdc (output) l notes 1. these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 195 figure 7-35 shows an example of the timing of a 2-cycle single transfer (from sdram connected to the nt85e502 to ram connected to the vdb). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0001h (2 transfers) ? scrn register note = 2062h (cas latency = 2, number of wait states = 1, address shift width = 2 bits (32-bit data bus), low address width = 11 bits, address multiplexed width = 10 bits) note an nt85e502 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 196 2. these are nt85e502 signals. figure 7-35. example of two-cycle single transfer timing (from sdram connected to nt85e502 to ram connected to vdb) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note 2 sdrasz (output) note 2 a25 to a0 (output) note 2 vmseq2 to vmseq0 (output) vbclk (input) sdclk (output) note 1 vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) sdwez (output) note 2 csz7 to csz0 (output) note 1 vmlock (output) 2h 2h ffh l l read cycle 2-cycle single transfer cpu cycle sdcasz (output) note 2 dqm3 to dqm0 (output) note 2 iramen (output) 0h 0h fh fh fh ffh ffh l h fh fh 3h 0h 3h read cycle 2-cycle single transfer l h fh 0h 0h ffh ffh ffh 6h 0h 0h 2h bfh bfh write cycle 0h 6h 0h 2h bfh write cycle bfh vbdo31 to vbdo0 (output) do31 to do0 (output) note 1 l l vbdv (output) l notes 1. these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 197 (2) flyby transfers figures 7-36 to 7-41 show examples of the timing of flyby transfers between external sram and external i/o connected to the memc (nt85e500). the flyby transfer consists of the following states. ? t1, t2 states: these are basic states for accessing the nt85e500. ? t3 state: this is a basic state added for flyby transfer. ? ta state: this is an address setting wait state inserted by means of a setting in the nt85e500 ? s asc register. ? ti state: this is an idle state inserted by means of a setting in the nt85e500 ? s bcc register. ? tw state: this is a wait state inserted by means of a setting in the nt85e500 ? s dwc0 register. remarks 1. the levels of the broken-line portions of the vmctyp2 to vmctyp0, vmseq2 to vmseq0, vmsize1, vmsize0, and di31 to di0 signals indicate an undefined state. 2. n = 3 to 0 figure 7-36 shows an example of the timing of a flyby single transfer (from external sram to external i/o connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0001h (2 transfers) ? asc register note = ffefh (cs2 address setting wait states = 2) ? bcc register note = ffefh (cs2 idle states = 2) ? dwc0 register note = 7377h (cs2 wait states = 3) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 198 figure 7-36. example of flyby single transfer timing (from external sram to external i/o connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 0h 2h 3h 2h fh fh ffh ffh l l fh ffh ffh ta 1st 2h 3h t1 tw t2 t3 ti ta t1 tw t2 t3 ti 2nd cpu cycle 0h l 0h 0h fh 7h 0h 2h 7h 0h 2h l fbh fbh ffh iordz (output) note iowrz (output) note h fbh fbh ffh vbdo31 to vbdo0 (output) do31 to do0 (output) note l l l vbdv (output) l note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 199 figure 7-37 shows an example of the timing of a flyby single-step transfer (from external sram to external i/o connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0001h (2 transfers) ? asc register note = ffefh (cs2 address setting wait states = 2) ? bcc register note = ffefh (cs2 idle states = 2) ? dwc0 register note = 7377h (cs2 wait states = 3) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 200 figure 7-37. example of flyby single-step transfer timing (from external sram to external i/o connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 0h 2h 3h 2h fh fh ffh ffh l l fh ffh ffh ta 1st 2h 3h t1 tw t2 t3 ti ta t1 tw t2 t3 ti 2nd cpu cycle 0h l 0h 0h fh 7h 0h 2h 7h 0h 2h l fbh fbh ffh iordz (output) note iowrz (output) note h fbh fbh ffh do31 to do0 (output) note vbdo31 to vbdo0 (output) l l vbdv (output) l l note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 201 figure 7-38 shows an example of the timing of a flyby single-step transfer (from external i/o to external sram connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0001h (2 transfers) ? asc register note = ffefh (cs2 address setting wait states = 2) ? bcc register note = ffefh (cs2 idle states = 2) ? dwc0 register note = 7377h (cs2 wait states = 3) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 202 figure 7-38. example of flyby single-step transfer timing (from external i/o to external sram connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 0h 2h 3h 2h fh fh ffh ffh l l ffh ffh ta 1st 2h 3h t1 tw t2 t3 ti ta t1 tw t2 t3 ti 2nd cpu cycle 0h l 0h 0h fh 7h 0h 2h 7h 0h 2h l fbh fbh ffh iordz (output) note iowrz (output) note h fbh fbh ffh h fh 0h 0h fh fh vbdo31 to vbdo0 (output) do31 to do0 (output) note l l vbdv (output) l l note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 203 figure 7-39 shows an example of the timing of a flyby line transfer (from external sram to external i/o connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0007h (8 transfers) ? asc register note = 0000h (no address setting wait states) ? bcc register note = 0000h (no idle states) ? dwc0 register note = 0000h (no wait states) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 204 figure 7-39. example of flyby line transfer timing (from external sram to external i/o connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 0h fh ffh l l fh ffh 1st t1 t2 t3 l 7h fbh iordz (output) note iowrz (output) note h 2h 2h 3h fbh 2nd t1 t2 t3 0h fh 0h 0h 2h ffh ffh 0h 3rd t1 t2 t3 2h 2h 3h 2h 2h 3h fh 0h 0h 7h 0h 2h 7h 0h 2h fbh ffh fbh 4th t1 t2 t3 0h 2h 2h 3h fh 0h 7h 0h 2h ffh fbh 5th t1 t2 t3 2h 2h 3h fh 0h 7h 0h 2h 6th t1 t2 t3 7th t1 t2 t3 8th t1 t2 t3 0h 2h 2h 3h fh 0h 7h 0h 2h 0h 2h 2h 3h fh 0h 7h 0h 2h 0h 2h 2h 3h fh 0h 7h 0h 2h 0h fbh ffh fbh ffh fbh ffh fbh ffh fbh ffh fbh ffh fbh ffh ffh fbh ffh fbh ffh fbh ffh fbh ffh 0h cpu cycle fh flyby line transfer flyby line transfer vbdo31 to vbdo0 (output) do31 to do0 (output) note l l vbdv (output) l l note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 205 figure 7-40 shows an example of the timing of a flyby block transfer (from external sram to external i/o connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0007h (8 transfers) ? asc register note = 0000h (no address setting wait states) ? bcc register note = 0000h (no idle states) ? dwc0 register note = 0000h (no wait states) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 206 figure 7-40. example of flyby block transfer timing (from external sram to external i/o connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note vmseq2 to vmseq0 (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 0h fh ffh l l fh ffh 1st t1 t2 t3 l 0h fh 7h l fbh ffh iordz (output) note iowrz (output) note h ffh 2nd t1 t2 t3 3rd t1 t2 t3 4th t1 t2 t3 5th t1 t2 t3 6th t1 t2 t3 7th t1 t2 t3 8th t1 t2 t3 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 0h 0h 2h fbh vbdo31 to vbdo0 (output) do31 to do0 (output) note l l vbdv (output) l l note these are nt85e500 signals.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 207 figure 7-41 shows an example of the timing of a flyby block transfer (from external i/o to external sram connected to the nt85e500). the settings of the registers in this figure are as follows. [register settings] ? dbcn register = 0007h (8 transfers) ? asc register note = 0000h (no address setting wait states) ? bcc register note = 0000h (no idle states) ? dwc0 register note = 0000h (no wait states) note an nt85e500 register.
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 208 figure 7-41. example of flyby block transfer timing (from external i/o to external sram connected to nt85e500) vmttyp1, vmttyp0 (output) vma27 to vma0 (output) vmwrite (output) vmstz (output) vmwait (input) vmahld (input) vmlast (input) vbdi31 to vbdi0 (input) vmbenz3 to vmbenz0 (output) vmctyp2 to vmctyp0 (output) vmsize1, vmsize0 (output) vdcsz7 to vdcsz0 (output) di31 to di0 (input) note rdz (output) note a25 to a0 (output) note (output) vbclk (input) vbdc (output) dmarqn (input) dmactvn (output) dmtcon (output) wrz3 to wrz0 (output) note csz7 to csz0 (output) note vmlock (output) 0h fh ffh l l ffh 1st t1 t2 t3 l 0h fh 7h l fbh ffh iordz (output) note iowrz (output) note h ffh 2nd t1 t2 t3 3rd t1 t2 t3 4th t1 t2 t3 5th t1 t2 t3 6th t1 t2 t3 7th t1 t2 t3 8th t1 t2 t3 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 2h 2h 3h 0h 0h 2h fbh h 0h fh fh fh fh fh fh fh fh fh 0h 0h 0h 0h 0h 0h 0h vbdo31 to vbdo0 (output) do31 to do0 (output) note l l vbdv (output) l l vmseq2 to vmseq0 note these are nt85e500 signals.
chapter 7 dmac preliminary user?s manual a15015ej3v0um 209 7.15 precautions (1) memory boundary operation is not guaranteed if the address of the transfer source or transfer destination is outside of the area for the dma object (external memory, ram, or peripheral macro) during a dma transfer. (2) misalign data transfer dma transfer of misalign data with a 32-bit or 16-bit bus width is not supported. (3) intervals related to dma transfer the overhead before a dma transfer and the minimum number of clocks required for a dma transfer are shown below. ? from the acknowledgement of the dmarqn signal until the rising edge of the dmactvn signal (n = 3 to 0): 3 clocks ? from when the dmarqn signal is acknowledged until the rising edge of the iramen signal for transfer from ram to vsb (n = 3 to 0): 3.5 clocks ? access to ram connected to vdb: 1 clock in the case of external memory access, these depend on the connected memc and the external memory. an example is shown below. example when sram is accessed using the memc (nt85e500) transfer type conditions transfer mode minimum clock number single 5 clocks single-step 5 clocks  time between start of read cycle and end of write cycle  the transfer time of one transfer for single and single-step transfers, and four transfers for a line transfer.  the combinations of transfer sources and destinations are as follows. vsb vsb vsb ram ram vsb ram ram line 32 clocks single 6 clocks single-step 4 clocks two-cycle time in which bus is released to cpu line 6 clocks flyby transfer time of one transfer from sram to i/o, and from i/o to sram ? 3 clocks
chapter 7 dmac preliminary user ? s manual a15015ej3v0um 210 (4) cpu access during dma transfer the cpu can access external memory, peripheral macros, or ram for which no dma transfer is being performed. the dmac has a higher vsb bus access right priority than the cpu, so the access from the cpu to the vsb generated during the dma transfer must wait until the dma transfer is complete and the bus is available for the cpu. however, while dma transfer is being performed between the external memory and peripheral macro, the cpu can access the ram. also, the cpu can access the external memory and peripheral macro using the vsb when dma transfer is being performed between rams that are directly connected to the vdb. (5) dma transfer end interrupt the dma transfer end interrupt is not generated when dma transfer is complete. if the generation of an interrupt coinciding with the completion of transfer is required, input the dmatcon signal to the intm pin and perform maskable interrupt servicing (n = 3 to 0, m = 63 to 0). (6) dmarqn signal retention the dmarqn signal must retain the request until the dmactvn signal becomes active. if the dmarqn signal is made inactive before the dmactvn signal becomes active, dma transfer may not be executed (n = 3 to 0). (7) vmlock signal if the destination of the dma transfer is the ram connected to the vdb, the vmlock signal will not become active in any transfer mode (single transfer, etc.) (the vmlock signal becomes active only when two or more vsb cycles are generated during 2-cycle transfer). if the destination of the dma transfer is the vsb, the vmlock signal stays active in the line transfer mode, in either 2-cycle transfer or flyby transfer, until the fourth dma transfer is performed. therefore, during a dma line transfer in which the destination is the vsb, the vsb is locked until one line transfer is complete and the bus is retained. during 2-cycle single transfer, single-step transfer, or block transfer, the vmlock signal becomes inactive for each dma transfer, therefore other vsb requests (vareq), such as sdram refresh, that have a higher priority are acknowledged and the bus can be released. during block transfer, the vsb bus access right is relinquished in the middle of transfer, and the remaining transfer is executed when the bus access right becomes available again.
preliminary user?s manual a15015ej3v0um 211 chapter 8 intc the interrupt control unit (intc) processes various types of interrupt requests generated from at total of 67 external sources. in addition, exception processing can be started by a trap instruction (software exception) or due to the generation of an exception event (fetching of an illegal opcode) (exception trap). an interrupt is an event that is generated independently of program execution, and an exception is an event that is generated dependent on program execution. generally, the processing of an exception takes precedence over the processing of an interrupt. remark when the number of maskable interrupt sources required by the system exceeds 64, connect the interrupt controller (intc) externally (maximum of 117 maskable interrupt sources can be supported). 8.1 features ? interrupts non-maskable interrupts: 3 sources maskable interrupts: 64 sources 8 levels of programmable priorities (maskable interrupts) multiple interrupt control according to priority mask specification to each maskable interrupt request ? exceptions software exceptions: 32 sources exception traps: 1 source (illegal opcode exception) these interrupt/exception sources are listed in table 8-1. table 8-1. interrupt/exception list (1/3) interrupt/exception source type classifi- cation name control register generating source default priority exception code handler address restored pc reset interrupt reset ? resetz input ? 0000h 00000000h undefined interrupt nmi0 ? nmi0 input ? 0010h 00000010h nextpc interrupt nmi1 ? nmi1 input ? 0020h 00000020h nextpc non-maskable interrupt nmi2 ? nmi2 input ? 0030h 00000030h nextpc exception trap0n note ? trap instruction ? 004nh 00000040h nextpc software exception exception trap1n note ? trap instruction ? 005nh 00000050h nextpc exception trap exception ilgop ? illegal opcode ? 0060h 00000060h nextpc interrupt int0 pic0 int0 input 0 0080h 00000080h nextpc interrupt int1 pic1 int1 input 1 0090h 00000090h nextpc interrupt int2 pic2 int2 input 2 00a0h 000000a0h nextpc interrupt int3 pic3 int3 input 3 00b0h 000000b0h nextpc interrupt int4 pic4 int4 input 4 00c0h 000000c0h nextpc interrupt int5 pic5 int5 input 5 00d0h 000000d0h nextpc maskable interrupt int6 pic6 int6 input 6 00e0h 000000e0h nextpc note n: value of 0 to fh
chapter 8 intc preliminary user?s manual a15015ej3v0um 212 table 8-1. interrupt/exception list (2/3) interrupt/exception source type classifi- cation name control register generating source default priority exception code handler address restored pc interrupt int7 pic7 int7 input 7 00f0h 000000f0h nextpc interrupt int8 pic8 int8 input 8 0100h 00000100h nextpc interrupt int9 pic9 int9 input 9 0110h 00000110h nextpc interrupt int10 pic10 int10 input 10 0120h 00000120h nextpc interrupt int11 pic11 int11 input 11 0130h 00000130h nextpc interrupt int12 pic12 int12 input 12 0140h 00000140h nextpc interrupt int13 pic13 int13 input 13 0150h 00000150h nextpc interrupt int14 pic14 int14 input 14 0160h 00000160h nextpc interrupt int15 pic15 int15 input 15 0170h 00000170h nextpc interrupt int16 pic16 int16 input 16 0180h 00000180h nextpc interrupt int17 pic17 int17 input 17 0190h 00000190h nextpc interrupt int18 pic18 int18 input 18 01a0h 000001a0h nextpc interrupt int19 pic19 int19 input 19 01b0h 000001b0h nextpc interrupt int20 pic20 int20 input 20 01c0h 000001c0h nextpc interrupt int21 pic21 int21 input 21 01d0h 000001d0h nextpc interrupt int22 pic22 int22 input 22 01e0h 000001e0h nextpc interrupt int23 pic23 int23 input 23 01f0h 000001f0h nextpc interrupt int24 pic24 int24 input 24 0200h 00000200h nextpc interrupt int25 pic25 int25 input 25 0210h 00000210h nextpc interrupt int26 pic26 int26 input 26 0220h 00000220h nextpc interrupt int27 pic27 int27 input 27 0230h 00000230h nextpc interrupt int28 pic28 int28 input 28 0240h 00000240h nextpc interrupt int29 pic29 int29 input 29 0250h 00000250h nextpc interrupt int30 pic30 int30 input 30 0260h 00000260h nextpc interrupt int31 pic31 int31 input 31 0270h 00000270h nextpc interrupt int32 pic32 int32 input 32 0280h 00000280h nextpc interrupt int33 pic33 int33 input 33 0290h 00000290h nextpc interrupt int34 pic34 int34 input 34 02a0h 000002a0h nextpc interrupt int35 pic35 int35 input 35 02b0h 000002b0h nextpc interrupt int36 pic36 int36 input 36 02c0h 000002c0h nextpc interrupt int37 pic37 int37 input 37 02d0h 000002d0h nextpc interrupt int38 pic38 int38 input 38 02e0h 000002e0h nextpc interrupt int39 pic39 int39 input 39 02f0h 000002f0h nextpc interrupt int40 pic40 int40 input 40 0300h 00000300h nextpc interrupt int41 pic41 int41 input 41 0310h 00000310h nextpc interrupt int42 pic42 int42 input 42 0320h 00000320h nextpc maskable interrupt int43 pic43 int43 input 43 0330h 00000330h nextpc
chapter 8 intc preliminary user?s manual a15015ej3v0um 213 table 8-1. interrupt/exception list (3/3) interrupt/exception source type classifi- cation name control register generating source default priority exception code handler address restored pc interrupt int44 pic44 int44 input 44 0340h 00000340h nextpc interrupt int45 pic45 int45 input 45 0350h 00000350h nextpc interrupt int46 pic46 int46 input 46 0360h 00000360h nextpc interrupt int47 pic47 int47 input 47 0370h 00000370h nextpc interrupt int48 pic48 int48 input 48 0380h 00000380h nextpc interrupt int49 pic49 int49 input 49 0390h 00000390h nextpc interrupt int50 pic50 int50 input 50 03a0h 000003a0h nextpc interrupt int51 pic51 int51 input 51 03b0h 000003b0h nextpc interrupt int52 pic52 int52 input 52 03c0h 000003c0h nextpc interrupt int53 pic53 int53 input 53 03d0h 000003d0h nextpc interrupt int54 pic54 int54 input 54 03e0h 000003e0h nextpc interrupt int55 pic55 int55 input 55 03f0h 000003f0h nextpc interrupt int56 pic56 int56 input 56 0400h 00000400h nextpc interrupt int57 pic57 int57 input 57 0410h 00000410h nextpc interrupt int58 pic58 int58 input 58 0420h 00000420h nextpc interrupt int59 pic59 int59 input 59 0430h 00000430h nextpc interrupt int60 pic60 int60 input 60 0440h 00000440h nextpc interrupt int61 pic61 int61 input 61 0450h 00000450h nextpc interrupt int62 pic62 int62 input 62 0460h 00000460h nextpc maskable interrupt int63 pic63 int63 input 63 0470h 00000470h nextpc remarks 1. default priority: priority of servicing when two or more maskable interrupt requests with the same priority level occur at the same time. the highest priority is 0. restored pc: this is the pc value saved in eipc or fepc upon activation of interrupt servicing or exception processing. note, however, that the restored pc when a non- maskable or maskable interrupt is acknowledged while one of the following instructions is being executed does not become the nextpc (if an interrupt is acknowledged during instruction execution, execution stops, and then resumes after the interrupt servicing has finished). ? load instructions (sld.b, sld.bu, sld.h, sld.hu, sld.w) ? division instructions (div, divh, divu, divhu) ? prepare, dispose instructions (only if an interrupt is generated before the stack pointer is updated) nextpc: the pc value that starts the processing following the completion of interrupt/exception processing. 2. the execution address of the illegal instruction when an illegal opcode exception occurs is calculated as follows: (restored pc ? 4)
chapter 8 intc preliminary user?s manual a15015ej3v0um 214 8.2 non-maskable interrupts (nmi) a non-maskable interrupt request (nmi) is acknowledged unconditionally even if the NU85ET is in an interrupt disabled (di) state. a non-maskable interrupt request is generated according to nmin pin input (n = 2 to 0). when a rising edge is input to the nmin pin, a non-maskable interrupt (nmin) is generated. if multiple non-maskable interrupts are generated at the same time, servicing is executed according to the following priority order (the lower priority interrupts are ignored). nmi2 > nmi1 > nmi0 note that if an nmi0, nmi1, or nmi2 request is generated while nmi0 is being serviced, the servicing is executed as follows. (1) if an nmi0 request is generated while nmi0 is being serviced the new nmi0 request is held pending regardless of the value of the psw?s np bit. the pending nmi0 request is acknowledged after servicing of the current nmi0 request has finished (after execution of the reti instruction). (2) if an nmi1 request is generated while nmi0 is being serviced if the psw?s np bit remains set (1) while nmi0 is being serviced, the new nmi1 request is held pending. the pending nmi1 request is acknowledged after servicing of the current nmi0 request has finished (after execution of the reti instruction). if the psw?s np bit is cleared (0) while nmi0 is being serviced, the newly generated nmi1 request is executed (nmi0 servicing is halted). (3) if an nmi2 request is generated while nmi0 is being serviced the new nmi2 request is executed, regardless of the value of the psw?s np bit (nmi0 servicing is halted). cautions 1. when a non-maskable interrupt request (nmi) is generated, the values of the pc and psw are saved in the registers (fepc and fepsw) for saving the status when an nmi occurs, but in this case, only nmi0 can be normally restored by the reti instruction. even if nmi1 and nmi2, which assume an emergency use such as watchdog, are restored by the reti instruction, the intc cannot determine the priority of the following interrupts. therefore, when nmi1 or nmi2, and other maskable interrupts are input with a miniscule time lag, maskable interrupt requests other than nmi1 and nmi2 may be deleted. when nmi1 or nmi2 is generated while nmi0 is being serviced, fepc is overwritten. when nmi0 servicing has been restored after the nmi1 and nmi2 servicing, the main routine cannot successfully be restored from the nmi0 servicing and an endless loop occurs. in the case of nmi2, a newly generated nmi2 request is executed regardless of the value of the np bit in the psw. therefore, nmi1 and nmi2 cannot be restored. 2. if interrupt servicing by nmi1 or nmi2 is continued without the reti instruction being executed, hang up will not occur, but none of the following interrupt requests will be acknowledged because multiple interrupts are disabled.
chapter 8 intc preliminary user?s manual a15015ej3v0um 215 figure 8-1. example of non-maskable interrupt request acknowledgement operation (1/2) (a) multiple nmi requests generated at the same time ? nmi0 and nmi1 requests generated simultaneously nmi0 and nmi1 requests (generated simultaneously) main routine nmi1 servicing system reset ? nmi0 and nmi2 requests generated simultaneously main routine nmi0 and nmi2 requests (generated simultaneously) nmi2 servicing system reset ? nmi1 and nmi2 requests generated simultaneously main routine nmi1 and nmi2 requests (generated simultaneously) nmi2 servicing system reset ? nmi0, nmi1, and nmi2 requests generated simultaneously main routine nmi0, nmi1, and nmi2 requests (generated simultaneously) nmi2 servicing system reset
chapter 8 intc preliminary user?s manual a15015ej3v0um 216 figure 8-1. example of non-maskable interrupt request acknowledgement operation (2/2) (b) nmi request generated during nmi servicing nmi request generated during nmi servicing nmi being serviced nmi0 nmi1 nmi2 nmi0 ? nmi0 request generated during nmi0 servicing main routine nmi0 request nmi0 request nmi0 servicing (held pending) servicing of pending nmi0 ? nmi1 request generated during nmi0 servicing (np = 1 retained before nmi1 request) main routine nmi0 request nmi1 request nmi0 servicing (held pending) system reset nmi1 servicing ? nmi1 request generated during nmi0 servicing (np = 0 set before nmi1 request) main routine nmi0 request nmi1 request nmi0 servicing nmi1 servicing system reset np = 0 ? nmi1 request generated during nmi0 servicing (np = 0 set after nmi1 request) main routine nmi0 request nmi1 request nmi0 servicing nmi1 servicing system reset np = 0 (held pending) ? nmi2 request generated during nmi0 servicing main routine nmi0 request nmi2 request nmi0 servicing nmi2 servicing system reset nmi1 ? nmi0 request generated during nmi1 servicing main routine nmi1 request nmi0 request nmi1 servicing (invalid) system reset ? nmi1 request generated during nmi1 servicing main routine nmi1 request nmi1 request nmi1 servicing (invalid) system reset ? nmi2 request generated during nmi1 servicing main routine nmi1 request nmi2 request nmi1 servicing nmi2 servicing system reset nmi2 ? nmi0 request generated during nmi2 servicing main routine nmi2 request nmi0 request nmi2 servicing (invalid) system reset ? nmi1 request generated during nmi2 servicing main routine nmi2 request nmi1 request nmi2 servicing (invalid) system reset ? nmi2 request generated during nmi2 servicing main routine nmi2 request nmi2 request nmi2 servicing (invalid) system reset
chapter 8 intc preliminary user ? s manual a15015ej3v0um 217 8.2.1 operation if a non-maskable interrupt is generated according to nmin input, the cpu performs the following processing and shifts control to the handler routine (n = 2 to 0). <1> saves the restored pc in the fepc. <2> saves the current psw in the fepsw. <3> writes the exception code in the higher halfword (fecc) of the ecr. <4> sets the np and id bits of the psw and clears the ep bit. <5> sets the handler address for the non-maskable interrupt in the pc and shifts control. figure 8-2 shows the processing format of non-maskable interrupt service. figure 8-2. non-maskable interrupt processing format non-maskable interrupt request fepc restored pc fepsw psw ecr.fecc exception code psw.np 1 psw.ep 0 psw.id 1 pc handler address 0 psw.np intc acknowledgement cpu processing 1 nmin input interrupt service interrupt request pending
chapter 8 intc preliminary user ? s manual a15015ej3v0um 218 8.2.2 restore (1) nmi0 control is returned from nmi0 servicing by the reti instruction. when the reti instruction is executed, the cpu performs the following processing and shifts control to the restored pc address. <1> since the ep bit of the psw is 0 and the np bit is 1, the restored pc and psw are fetched from the fepc and fepsw. <2> shifts control to the fetched restored pc address and psw status. figure 8-3 shows the processing format of the reti instruction. figure 8-3. reti instruction processing format 0 psw.ep pc eipc psw eipsw 1 psw.np 0 1 pc fepc psw fepsw reti instruction original processing restored caution if the psw.ep bit or psw.np bit is changed by the ldsr instruction during nmi0 servicing, then in order to restore the pc and psw correctly when control is returned by the reti instruction, the ldsr instruction must be used to return psw.ep to 0 and psw.np to 1 immediately before executing the reti instruction. remark the solid line indicates the cpu processing flow. (2) nmi1, nmi2 restoring by reti instruction is not possible. perform a system reset by resetz input after interrupt servicing.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 219 8.3 maskable interrupts a maskable interrupt request is an interrupt request for which the acknowledgement of the interrupt can be masked according to the interrupt control register. there are 64 interrupt sources for maskable interrupts. a maskable interrupt request is generated by intn pin input (n = 63 to 0). when a rising edge is input to the intn pin, a maskable interrupt (intn) is generated. if multiple maskable interrupt requests are generated at the same time, their priorities are determined according to the default priorities. in addition to the default priority, eight interrupt priority levels can be set using the interrupt control register (programmable priority control). when an interrupt request is acknowledged, interrupt disabled (di) state is set, and the acknowledgement of subsequent maskable interrupt requests is disabled. if the ei instruction is executed during an interrupt service routine, the interrupt enabled (ei) state is set, and the acknowledgement of interrupt requests having higher priorities than the priority level of the currently acknowledged interrupt request (specified by the interrupt control register) is enabled. interrupts having the same priority level cannot be nested. however, the following processing is required for multiple interrupt servicing. <1> save the eipc and eipsw in memory or general-purpose registers before executing the ei instruction. <2> before executing the reti instruction, execute the di instruction and return the values that were saved in step <1> to the eipc and eipsw. 8.3.1 operation if a maskable interrupt is generated by intn input, the cpu performs the following processing and shifts control to the handler routine. <1> saves the restored pc in the eipc. <2> saves the current psw in the eipsw. <3> writes the exception code in the lower halfword (eicc) of the ecr. <4> sets the id bit of the psw and clears the ep bit. <5> sets the handler address for the interrupt in the pc and shifts control. an intn input that is masked by the intc and an intn input that was generated while another interrupt was being serviced (psw.np = 1 or psw.id = 1) are held pending within the intc. in this case, if the mask is canceled or the reti and ldsr instructions are used to set psw.np to 0 and psw.id to 0, new maskable interrupt servicing is started by the intn input that was pending. figure 8-4 shows the processing format of maskable interrupt service.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 220 figure 8-4. maskable interrupt processing format intc acknowledgement yes no no yes priority higher than that of interrupt currently being processed? no yes priority higher than that of other interrupt request? no yes highest default priority of interrupt requests with same priority? no yes psw.np 0 psw.id 1 1 eipc restored pc eipsw psw ecr.eicc exception code psw.ep 0 psw.id 1 pc handler address 0 cpu processing interrupt servicing interrupt servicing held pending interrupt request pending maskable interrupt request intn input interrupt request? interrupt unmasked?
chapter 8 intc preliminary user ? s manual a15015ej3v0um 221 8.3.2 restore control is returned from maskable interrupt servicing by the reti instruction. when the reti instruction is executed, the cpu performs the following processing and shifts control to the restored pc address. <1> since the ep bit of the psw is 0 and the np bit is 0, the restored pc and psw are fetched from the eipc and eipsw. <2> shifts control to the fetched restored pc address and psw status. figure 8-5 shows the processing format of the reti instruction. figure 8-5. reti instruction processing format 0 psw.ep pc eipc psw eipsw 1 psw.np 0 1 pc fepc psw fepsw reti instruction original processing restored caution if the psw.ep bit and psw.np bit are changed by the ldsr instruction during maskable interrupt servicing, then in order to restore the pc and psw correctly when control is returned by the reti instruction, the ldsr instruction must be used to return psw.ep to 0 and psw.np to 0 immediately before executing the reti instruction. remark the solid line indicates the cpu processing flow.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 222 8.3.3 maskable interrupt priorities the intc provides multiple interrupt servicing in which another interrupt is acknowledged while an interrupt is being serviced. multiple interrupts can be controlled according to priorities. priority control includes control according to default priorities and programmable priority control by the interrupt control register (picn). for priority control according to default priorities, if multiple interrupts having the same priority level according to the picn register are generated at the same time, the interrupts are serviced according to the priorities (default priorities) that have been assigned in advance to each interrupt request (see table 8-1 interrupt/exception list ). for programmable priority control, the interrupt requests are divided into eight levels according to picn register settings. when an interrupt is acknowledged, the id flag of the psw is automatically set (1). therefore, to use multiple interrupt servicing, clear (0) the id flag (such as by executing the ei instruction during the interrupt servicing program) to set the interrupt enabled state.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 223 figure 8-6. servicing example in which another interrupt request is issued during interrupt servicing (1/2) main routine servicing of servicing of interrupt request is acknowledged because the priority of is higher than that of and interrupts are enabled. ei interrupt request (level 3) ei interrupt request (level 3) servicing of servicing of although the priority of interrupt request is higher than that of , is held pending because interrupts are disabled. interrupt request (level 2) servicing of servicing of interrupt request is held pending even if interrupts are enabled because its priority is lower than that of . ei interrupt request (level 1) servicing of servicing of interrupt request is held pending even if interrupts are enabled because its priority is the same as that of . ei interrupt request (level 2) interrupt request (level 2) interrupt request (level 3) interrupt request (level 1) remarks 1. to in the figure represent dummy names that are assigned to distinguish between the interrupt requests. 2. higher or lower default priorities mentioned in the figure indicate relative priorities between two interrupt requests. caution to use multiple interrupt servicing, the contents of the eipc and eipsw registers must be saved.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 224 figure 8-6. servicing example in which another interrupt request is issued during interrupt servicing (2/2) interrupt request (level 2) servicing of servicing of servicing of servicing of main routine interrupt request (level 2) interrupt request is held pending because its priority is lower than that of . interrupt request that occurs after is acknowledged because it has the higher priority. servicing of interrupt request (level 1) ei ei servicing of interrupt request (level 3) interrupt request (level 3) interrupt request (level 1) interrupt request (level 3) servicing of ei servicing of

ei servicing of ei servicing of ei interrupt request (level 1) servicing of servicing of servicing of interrupt request (level 2 note 1 ) interrupt request (level 2 note 2 ) interrupt requests and are held pending because servicing of is performed in the interrupt disabled status. pending interrupt requests are acknowledged after servicing of interrupt request . at this time, interrupt request is acknowledged first even though has occurred first because the priority of is higher than that of . if levels 3 to 0 are acknowledged pending interrupt requests and are acknowledged after servicing of . because the priorities of and are the same, is acknowledged first according to the default priority, regardless of the order in which the interrupt requests have been generated. interrupt request

(level 2) interrupt request (level 1) interrupt request (level 0) notes 1. default priority is lower. 2. default priority is higher.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 225 figure 8-7. servicing example for simultaneously issued interrupt requests interrupt request
(level 2), interrupt request (level 1), interrupt request (level 1) servicing of servicing of servicing of main routine ei default priority: a > b > c interrupt requests and are acknowledged first according to their priorities. because the priorities of and are the same, is acknowledged first because it has the higher default priority. remark to in the figure represent dummy names that are assigned to distinguish between the interrupt requests.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 226 8.3.4 control registers (1) interrupt control registers 0 to 63 (pic0 to pic63) the interrupt control registers, which are assigned to each interrupt request (maskable interrupt), set control conditions for each interrupt. these registers can be read or written in 8-bit or 1-bit units. figure 8-8. interrupt control registers 0 to 63 (pic0 to pic63) 76543210 picn pifn pmkn 0 0 0 pprn2 pprn1 pprn0 address fffff110h to after reset 47h fffff18eh bit position bit name function 7 pifn this is the interrupt request flag. 0: no interrupt request issued 1: interrupt request issued when the interrupt request is acknowledged, this is automatically cleared (0). 6 pmkn this is the interrupt mask flag. 0: interrupt service enabled 1: interrupt service disabled (pending) specifies eight priority levels for each interrupt. pprn2 pprn1 pprn0 interrupt priority 0 0 0 specifies level 0 (highest) 0 0 1 specifies level 1 0 1 0 specifies level 2 0 1 1 specifies level 3 1 0 0 specifies level 4 1 0 1 specifies level 5 1 1 0 specifies level 6 1 1 1 specifies level 7 (lowest) 2 to 0 pprn2 to pprn0 remark n = 0 to 63
chapter 8 intc preliminary user ? s manual a15015ej3v0um 227 (2) interrupt mask registers 0 to 3 (imr0 to imr3) the interrupt mask registers hold the mask status of each maskable interrupt. the pmkn bit of this register and the pmkn bit of the picn register are linked (n = 0 to 63). the imrm register can be read or written in 16-bit units (m = 0 to 3). when using the higher 8 bits of the imrm register as the imrmh register, and the lower 8 bits as the imrml register, the imrm register can be read or written in 8-bit or 1-bit units. figure 8-9. interrupt mask registers 0 to 3 (imr0 to imr3) 1514131211109876543210 imr0 pmk 15 pmk 14 pmk 13 pmk 12 pmk 11 pmk 10 pmk 9 pmk 8 pmk 7 pmk 6 pmk 5 pmk 4 pmk 3 pmk 2 pmk 1 pmk 0 address fffff100h after reset ffffh imr1 pmk 31 pmk 30 pmk 29 pmk 28 pmk 27 pmk 26 pmk 25 pmk 24 pmk 23 pmk 22 pmk 21 pmk 20 pmk 19 pmk 18 pmk 17 pmk 16 address fffff102h after reset ffffh imr2 pmk 47 pmk 46 pmk 45 pmk 44 pmk 43 pmk 42 pmk 41 pmk 40 pmk 39 pmk 38 pmk 37 pmk 36 pmk 35 pmk 34 pmk 33 pmk 32 address fffff104h after reset ffffh imr3 pmk 63 pmk 62 pmk 61 pmk 60 pmk 59 pmk 58 pmk 57 pmk 56 pmk 55 pmk 54 pmk 53 pmk 52 pmk 51 pmk 50 pmk 49 pmk 48 address fffff106h after reset ffffh
chapter 8 intc preliminary user ? s manual a15015ej3v0um 228 (3) in-service priority register (ispr) this register holds the priority level of the maskable interrupt that is being acknowledged. when an interrupt request is acknowledged, the bit corresponding to the priority level of that interrupt request is set (1) and held while the interrupt is being serviced. when the reti instruction is executed, the bit corresponding to the interrupt request having the highest priority among the bits that are set (1) within the ispr register is automatically cleared (0). however, it is not cleared (0) when control returns from non-maskable interrupt service or exception processing. this register is read-only in 8-bit or 1-bit units. figure 8-10. in-service priority register (ispr) 76543210 ispr ispr7 ispr6 ispr5 ispr4 ispr3 ispr2 ispr1 ispr0 address fffff1fah after reset 00h bit position bit name function 7 to 0 ispr7 to ispr0 indicates the priority of the interrupt that is being acknowledged. 0: interrupt request having priority n has not been acknowledged 1: interrupt request having priority n is being acknowledged remark n = 7 to 0 (priority levels)
chapter 8 intc preliminary user ? s manual a15015ej3v0um 229 8.3.5 maskable interrupt status flag (id) this flag, which controls the operation status of maskable interrupts, stores information indicating whether the acknowledgement of interrupt requests is enabled or disabled. it is assigned to bit 5 of the program status word (psw). figure 8-11. program status word (psw) 31 876543210 psw000000000000000000000000 np ep id sat cy ov sz after reset 00000020h bit position bit name function 5 id indicates whether maskable interrupt servicing is enabled or disabled. 0: the acknowledgement of maskable interrupts is enabled 1: the acknowledgement of maskable interrupts is disabled (pending) this bit is set (1) by the di instruction and cleared (0) by the ei instruction. its value is also rewritten by the reti instruction or the ldsr instruction for the psw. non-maskable interrupts and exceptions are acknowledged regardless of the status of this flag. also, when a maskable interrupt is acknowledged, the id flag is automatically set (1). an interrupt request that is generated while acknowledgement is disabled (id = 1), is acknowledged when the pifn bit of the picn register is set (1) and the id flag is cleared (0) (n = 0 to 63).
chapter 8 intc preliminary user ? s manual a15015ej3v0um 230 8.4 software exceptions a software exception, which is an exception that is generated when the cpu executes the trap instruction, can always be acknowledged. 8.4.1 operation if a software exception is generated, the cpu performs the following processing and shifts control to the handler routine. <1> saves the restored pc in the eipc. <2> saves the current psw in the eipsw. <3> writes the exception code in the lower 16 bits (eicc) of the ecr (interrupt source). <4> sets the ep and id bits of the psw. <5> sets the handler address (00000040h or 00000050h) for the software exception in the pc and shifts control. figure 8-12 shows the processing format of software exception processing. figure 8-12. software exception processing format eipc restored pc eipsw psw ecr.eicc exception code psw.ep 1 psw.id 1 pc handler address cpu processing trap instruction note exception processing note the trap instruction format is ? trap vector ? (where vector is a value from 0 to 1fh). the handler address is determined by the trap instruction operand (vector). when vector is 0 to 0fh, the address is 00000040h. when vector is 10h to 1fh, the address is 00000050h.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 231 8.4.2 restore control is returned from software exception processing by the reti instruction. when the reti instruction is executed, the cpu performs the following processing and shifts control to the restored pc address. <1> since the ep bit of the psw is 1, the restored pc and psw are fetched from the eipc and eipsw. <2> shifts control to the fetched restored pc address and psw status. figure 8-13 shows the processing format of the reti instruction. figure 8-13. reti instruction processing format 0 psw.ep pc eipc psw eipsw 1 0 1 pc fepc psw fepsw psw.np original processing restored reti instruction caution if the psw.ep bit and psw.np bit are changed by the ldsr instruction during software exception processing, then in order to restore the pc and psw correctly when control is returned by the reti instruction, the ldsr instruction must be used to return psw.ep to 1 immediately before executing the reti instruction. remark the solid line indicates the cpu processing flow.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 232 8.5 exception trap the exception trap is an interrupt that is requested when the illegal execution of an instruction occurs. in the
NU85ET, the illegal opcode exception (ilgop: illegal opcode trap) is assigned for the exception trap. an illegal opcode exception is generated when the sub-opcode of the instruction to be executed next is an illegal opcode. 8.5.1 illegal opcode the illegal opcode, which has a 32-bit long instruction format, is defined as an arbitrary opcode in which bits 10 to 5 are 111111b, bits 26 to 23 are 0111b to 1111b, and bit 16 is 0b. figure 8-14. illegal opcode 15 11 10 54 031 0 1 1 1 1 1 1 1 to 0 27 26 23 22 16 11111 1 17 remark indicates an arbitrary value. caution since a new instruction may be assigned in the future for the illegal opcode, we recommend that this opcode not be used.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 233 8.5.2 operation if an exception trap is generated, the cpu performs the following processing and shifts control to the handler routine. <1> saves the restored pc in the dbpc. <2> saves the current psw in the dbpsw. <3> sets the np, ep, and id bits of the psw. <4> sets the handler address (00000060h) for the exception trap in the pc and shifts control. figure 8-15 shows the processing format of exception trap processing. figure 8-15. exception trap processing format dbpc restored pc dbpsw psw psw.np 1 psw.ep 1 psw.id 1 pc 00000060h cpu processing exception processing exception trap (ilgop) is generated 8.5.3 restore control cannot be returned from an exception trap. perform a system reset according to resetz input.
chapter 8 intc preliminary user ? s manual a15015ej3v0um 234 8.6 interrupt response time except in the following cases, the interrupt response time is a minimum of 5 clocks. to input interrupt requests continuously, leave a space of at least 5 clocks between interrupt request inputs. ? in software or hardware stop mode ? when an external bus is accessed ? when there are two or more successive interrupt request non-sampling instructions (see 8.7 periods when interrupts cannot be acknowledged ). ? when the interrupt control register is accessed figure 8-16. example of pipeline operation when interrupt request is acknowledged (outline) vbclk (input) 5 system clocks interrupt request if id ex mem wb instruction 1 ifx idx int1 int2 int3 int4 if id ex instruction 2 interrupt acknowledgement operation instruction (first instruction of interrupt service routine) remark int1 to int4: interrupt acknowledgement servicing ifx: invalid instruction fetch idx: invalid instruction decode 8.7 periods when interrupts cannot be acknowledged an interrupt is acknowledged while an instruction is being executed. however, an interrupt is not acknowledged between an interrupt request non-sampling instruction and the subsequent instruction (interrupt will be held pending). the interrupt request non-sampling instructions are as follows. ? ei instruction ? di instruction ? ldsr reg2, 0x5 instruction (for psw) ? store instruction for specific area ( fff100h to fff1ffh note , fff900h to fff9ffh) note the imr0 to imr3, pic0 to pic63, ispr, prcmd, and psc registers are allocated to a part of this area.
preliminary user?s manual a15015ej3v0um 235 chapter 9 test function the NU85ET is equipped with an on-chip test interface control unit (tic) for testing the NU85ET itself or connected peripheral macros via the test buses (tbi39 to tbi0 and tbo34 to tbo0). the test buses are enabled when the test and bunri signals are active. 9.1 test pins 9.1.1 test bus pins (tbi39 to tbi0 and tbo34 to tbo0) the test bus pins are used in place of normal pins when the NU85ET is in unit test mode. always extend these pins outside of the asic (they can be used as normal pins). for details, refer to the various cell-based ic family design manuals. 9.1.2 bunri and test pins these pins are used to select normal, unit test, or standby test mode. table 9-1. list of test mode settings bunri pin input level test pin input level mode low level arbitrary normal mode high level low level standby test mode high level high level unit test mode (1) normal mode this is the mode the user normally uses. when a low-level signal is being input to the bunri pin, the pins other than the test pins are enabled, and the NU85ET is in normal mode. at this time, input to the tbi39 to tbi0 pins is ignored, and the tbo34 to tbo0 pins are set to high impedance. (2) unit test mode and standby test mode when a high-level signal is being input to the bunri pin, the NU85ET is in test mode. the two types of test modes are unit test mode and standby test mode. circuits should be designed so that floating or bus contention does not occur for the pins constituting the bus (excluding test pins) in unit or standby test mode (for the pin status in each mode, see 2.4 pin status ).
chapter 9 test function preliminary user?s manual a15015ej3v0um 236 (a) unit test mode when a high-level signal is being input to the bunri and test pins, the NU85ET is in unit test mode and the input from the tbi39 to tbi0 pins is enabled in their place. also, the test result is output from the tbo34 to tbo0 pins. input/output signals from the following pins are also valid in test mode, and operate in the same way as in normal mode. accordingly, in test mode, be sure to handle these pins as indicated in 9.4 handling of each pin in test mode . ? vsb pins ? npb pins ? vfb pins ? vdb pins ? instruction cache pins ? data cache pins ? dcu pins caution unit test mode is the mode used by nec to perform testing. test patterns are provided by nec. (b) standby test mode when a high-level signal is being input to the bunri pin and a low-level signal is being input to the test pin, the NU85ET is in standby test mode. the input to the tbi39 to tbi0 pins is ignored, and the tbo34 to tbo0 pins are set to high impedance. 9.1.3 bunriout pin the level input to the bunri pin is output as is from the bunriout pin. to support the test bus automatic connection tool, use the output from the bunriout pin and not that from the bunri pin if bunri signal logic is required for user circuit separation during the core testing or in places that are not targets of test bus automatic connection such as the cache. 9.2 list of test interface signals signal name i/o function phtdin1, phtdin0 output dedicated test signals output to peripheral macros phtdo1, phtdo0 input dedicated test signals input from peripheral macros tesen output enable signal output for setting peripheral macros to test mode vptclk output peripheral macro test clock output phtest output status signal output pin indicating peripheral test mode status tmode1, tmode0 output tbredz output these are nec reserved pins. leave them open. caution the above signals are only required for tests performed at nec.
chapter 9 test function preliminary user?s manual a15015ej3v0um 237 9.3 example of connection of peripheral macro in test mode the npb peripheral macro, memc, instruction cache, and data cache supported by nec are tested via the NU85ET. an example of the connections between the test mode pins for the NU85ET, the macros, and the user logic is shown below. figure 9-1. peripheral macro connection example NU85ET vpresz vptclk phtdin0 phtdin1 phtdo0 phtdo1 phtest tmode0 tmode1 tbredz tbi39 tbi0 tbo34 tbo0 test bunri open memc (nt85e500) vpresz vptclk phtdin0 phtdin1 phtdo0 phtdo1 phtest memc (nt85e502) vptclk vbclk vbclk vpresz tesen tbi39 tbi0 tbo34 tbo0 test bunri open vbclk vbclk dck dck dms dms ddi ddi ddo ddo drstz drstz dbint dbint evttrg evttrg trcclk trcclk trcdata3 trcdata0 trcdata3 trcdata0 trcend trcend bunriout macro requiring bunri signal logic bunri user logic
chapter 9 test function preliminary user?s manual a15015ej3v0um 238 9.4 handling of each pin in test mode (1) pins other than those for test mode (a) input pins input a low level to the vareq pin. special handling is not required for pins other than the vareq pin (handle as in normal mode). (b) output pins special handling is not required (handle as in normal mode). (2) test mode pins (except tbi39 to tbi0, tbo34 to tbo0, bunri, test, and bunriout) handle the pins for test mode as indicated below. connection method pin name i/o when memc is connected when cache is connected when neither memc nor cache is connected phtdon input connect to the phtdon pin of the nt85e500. ? input low level. phtdinn output connect to the phtdinn pin of the nt85e500. ? vpresz output connect to the vpresz pin of the nt85e500, nt85e502. connect to the vpresz pin. vptclk output connect to the vptclk pin of the nt85e500, nt85e502. connect to the vptclk pin. tesen output ?? phtest output connect to the phtest pin of the nt85e500. ? tmoden, tbredz output leave open. leave open. remark n = 1, 0 (3) n-wire type ie connection pins thirteen n-wire type ie connection pins (dck, drstz, dms, ddi, ddo, dbint, evttrg, trcclk, trcdata3 to trcdata0, and trcend) must be output off the chip as external pins since they are used in the unit test mode. do not use these pins as alternate function pins (however, the evttrg and dbint pins can be used as alternate function pins for other than the test bus (tbi39 to tbi0, tbo34 to tbo0)).
preliminary user?s manual a15015ej3v0um 239 chapter 10 dcu the debug control unit (dcu) consists of three function units: a run control unit (rcu) for realizing communication using jtag and executing debug processing, a trace control unit (trcu) for realizing trace functions, and a trigger event unit (teu) for realizing event detection functions. by connecting an n-wire type ie (ie-70000-mc-nw-a), on- chip debugging using a single NU85ET can be realized. 10.1 outline of functions 10.1.1 debug functions (1) debug interface communication with the host machine is performed via the n-wire type ie using the drstz, dck, dms, ddi, and ddo signals. jtag communication specification is used for the interface. the boundary scan function is not supported. (2) on-chip debug by preparing wiring and a connector for debugging on the target system board, on-chip debugging becomes possible. an n-wire type ie is connected to the debug connector. for regulations concerning the wiring or connector, refer to 10.2 connection with n-wire type ie (ie-70000-mc-nw-a) . (3) forcible reset function the NU85ET unit can be forcibly reset. (4) break reset function the cpu can be started in debug mode immediately after cpu reset release. (5) forcible break function execution of the user program can be forcibly interrupted. (note that the illegal opcode exception handler (start address: 00000060h) cannot be used). (6) debug interrupt interface the forcible break function can be executed by inputting a high level to the dbint pin. remark it is also possible to release the halt, software stop, and hardware stop modes by dbint input. (7) debug monitor function a debug-dedicated memory space, which is different to the user memory space, is used during debugging (background monitor format). execution of the user program can be started from an arbitrary address. it is also possible to read/write the user resources (such as memory and i/o) and download the user program during a user program interruption. (8) mask function the external input signals (resetz, stopz, vareq, nmi2 to nmi0, int63 to int0) can be masked.
chapter 10 dcu preliminary user?s manual a15015ej3v0um 240 10.1.2 trace functions (1) pc trace (branch trace) function this function allows all branches (transition of processing) generated during execution of the user program to be traced. the trace source can be selected from 12 types of branch sources classified according to function, and a pc trace can be started, or a trace source switched from an instruction execution of an arbitrary address. two trace start triggers are provided. (2) data trace function this function allows a data access to an arbitrary address within the range of 1 kb (max) and 4 bytes (min) issued by the cpu to be traced. two data trace points can be set, and both read and write data is traceable. note that data accesses issued by the dmac cannot be traced. (3) real-time trace mode in this mode, branches and data accesses occurring while the user program is being executed in real time can be traced. the trace packet of the detected trace source is stored in the trace buffer and output from the trace interface pins (trcclk, trcdata3 to trcdata0, and trcend) (note that if the trace buffer reaches full capacity, trace packets may be left unfetched). (4) complete trace mode (non real-time trace mode) in this mode, all branches and data accesses of the user program can be traced. to secure the time required to output the trace data from the trace interface pins in this mode and avoid leaving trace packets unfetched, put the cpu pipeline on hold and temporarily stop instruction execution.
chapter 10 dcu preliminary user?s manual a15015ej3v0um 241 10.1.3 event functions (1) event trigger interface notification of event detection can be sent off chip via the evttrg pin. (2) instruction event detection function this function allows event detection (10 events) through comparison with the size of the execution pc, as well as execution pc range event detection (up to 4 sets of two events per set). note that if the instruction event source is the break source, 2 breaks can be detected prior to execution of the event-detected instruction, and 8 breaks following instruction execution. (3) access event detection function events based on the following can be detected. ? size comparison with access address (4 events) ? range based on access address (up to 2 sets of two events per set) ? match, mismatch with access data ? data of a specific bit via data masking ? access size note that the access event source is detected after access. if the access event source is the break source, the break will occur after the execution of a number of instructions following the instruction that issued the event- detected access. (4) sequential event detection function this function allows event detection based on the continuous generation of up to 4 levels of events, and event detection that clears continuous event generation. sequential events can also be counted using a 12-bit bus counter.
chapter 10 dcu preliminary user?s manual a15015ej3v0um 242 10.2 connection with n-wire type ie (ie-70000-mc-nw-a) in order to connect the n-wire type ie (ie-70000-mc-nw-a), it is necessary to mount an ie connector and a connection circuit on the target system. figure 10-1. n-wire type ie connection to host machine target system ie-70000-mc-nw-a ie connector (8830e-026-170s/l) (product of kel corporation) 10.2.1 ie connector (target system side) figure 10-2 shows the pin layout of the ie connector (target system side), and table 10-1 describes the pin functions. remark the recommended connectors are as follows. ? 8830e-026-170s (product of kel corporation): 26-pin straight type ? 8830e-026-170l (product of kel corporation): 26-pin right-angle type figure 10-2. ie connector pin layout diagram (target system side) a13 a12 a11 a3 a1 a2 b1 b2 b3 b13 b11 b12 (top view)
chapter 10 dcu preliminary user?s manual a15015ej3v0um 243 table 10-1. ie connector pin functions (target system side) pin no. pin name i/o pin function a1 trcclk input trace clock input a2 trcdata0 input trace data 0 input a3 trcdata1 input trace data 1 input a4 trcdata2 input trace data 2 input a5 trcdata3 input trace data 3 input a6 trcend input trace data end input a7 ddi output debug serial interface data output a8 dck output debug serial interface clock output a9 dms output debug serial interface transfer mode selection output a10 ddo input debug serial interface data input a11 drstz output dcu reset output a12 (reserved) ? (leave open) a13 (reserved) ? (leave open) b1 gnd ?? b2 gnd ?? b3 gnd ?? b4 gnd ?? b5 gnd ?? b6 gnd ?? b7 gnd ?? b8 gnd ?? b9 gnd ?? b10 gnd ?? b11 (reserved) ? (leave open) b12 (reserved) ? (leave open) b13 v dd ? +3.3 v input (for monitoring target power supply application)
chapter 10 dcu preliminary user?s manual a15015ej3v0um 244 10.2.2 example of recommended circuit when connecting NU85ET figure 10-3 shows an example of the circuit recommended for ie connector section (target system side). figure 10-3. example of recommended circuit for ie connection (NU85ET) trcdata0 trcdata1 trcdata2 trcdata3 trcend trcclk trcdata0 trcdata1 trcdata2 trcdata3 trcend trcclk note 1 note 2 note 2 note 2 note 2 3 v buffer note 3 22 ? a1 a2 a3 a4 a5 a6 dck dms ddi ddo drstz dbint dck dms ddi ddo drstz note 1 a8 note 2 a9 note 2 a7 note 2 a10 a11 4.7 k ? +3.3 v note 3 22 ? 50 k ? NU85ET ie connector (target system side) 8830e-026-170s/l v dd +3.3 v b13 gnd b1 to b10 a12 a13 b11 b12 (open) (open) (open) (open) (reserved) (reserved) (reserved) (reserved) to logic analyzer, etc. evttrg note 2 note 4 asic external event detection device, etc. output buffer note 4 notes 1. make the clock pattern length as short as possible, and shield it by surrounding it with gnd. avoid exceeding a pattern length of 100 mm. 2. make the pattern length as short as possible. avoid exceeding a pattern length of 100 mm. 3. recommended buffer: sn74lvc541a (product of ti corporation) or tc74lcx541f (product of toshiba corporation) 4. an output buffer with a drive capability of at least 6 ma is recommended. remarks 1. the v dd pin (pin b13) of the ie connector (target system side) is only used to detect whether power has been applied to the target system. 2. the dbint pin is optional. when it is unnecessary to input a debug interrupt externally, input a low level to this pin. 3. the evttrg pin is optional. it mainly is used as trigger output of measurement devices such as a logic analyzer. when trigger output is not needed, leave it open. 10.2.3 precautions when using n-wire type ie when debugging using an n-wire type ie, the 13 n-wire type ie connection pins are also used as test pins, so be sure to output all these pins off the asic chip and not use them as alternate function pins (the evttrg and dbint pins can, however, be used as alternate function pins for other than the test bus (tbi39 to tbi0, tbo34 to tbo0)).
preliminary user?s manual a15015ej3v0um 245 appendix a rom/ram access timing figure a-1. rom access timing vbclk (input) iromen (output) iroma19 to iroma2 (output) iromz31 to iromz0 (input) a0 a1 hold a3 d0 d1 a2 a4 d2 note d3 a5 d4 note data should be retained from when the iromen output becomes high level until the vbclk signal rises. remarks 1. ax: arbitrary address dx: data corresponding to address ?ax? 2. { : rom data sampling timing
appendix a rom/ram access timing preliminary user?s manual a15015ej3v0um 246 figure a-2. ram access timing (a) read timing vbclk (input) iramrwb (output) irama27 to irama2 (output) iramz31 to iramz0 (input) iramen (output) a0 a1 a2 d0 d1 d2 remarks 1. ax: arbitrary address dx: data corresponding to address ?ax? 2. { : ram data sampling timing (b) write timing vbclk (input) iramrwb (output) irama27 to irama2 (output) iramwr3 to iramwr0 (output) iramen (output) iraoz31 to iraoz0 (output) d0 d1 d2 a0 a1 a2 we0 we1 we2 remark ax: arbitrary address dx: data corresponding to address ?ax?
preliminary user?s manual a15015ej3v0um 247 appendix b index [a] address space ......................................................... 64 application system example .................................... 18 [b] bbr ....................................................................... 124 bc15 to bc0.......................................................... 162 bcu ......................................................................... 80 bcunch.................................................................. 40 bcu-related register setting examples .................... 97 bec ......................................................................... 93 ben0 ........................................................................ 93 bhc ......................................................................... 96 bhn0........................................................................ 96 bhn1........................................................................ 96 block transfer mode............................................... 176 bpc ................................................................. 91, 127 bsc ......................................................................... 92 bsn1, bsn0 ............................................................. 92 bunri...................................................................... 49 bunriout .............................................................. 49 bus size configuration register................................. 92 bus size setting function .......................................... 92 [c] cache configuration................................................. 96 cache configuration register.................................... 96 cgrel .................................................................... 36 ch3 to ch0 ........................................................... 166 chip area select control register 0 ........................... 83 chip area select control register 1 ........................... 84 clkb1 ..................................................................... 36 clock control .......................................................... 150 command register ................................................. 145 connection with n-wire type ie (ie-70000-mc-nw-a) ............................................ 242 cpu ......................................................................... 57 csc0 ....................................................................... 83 csc1 ....................................................................... 84 csn3 to csn0.................................................... 83, 84 ctbp ....................................................................... 61 ctpc ....................................................................... 61 ctpsw.................................................................... 61 cy............................................................................ 63 [d] da15 to da0 ..........................................................161 da27 to da16 ........................................................160 dad1, dad0 ..........................................................164 dadc0 to dadc3 ..................................................163 data area .................................................................66 data cache control registers ....................................79 data transfer using vsb.........................................100 dbc0 to dbc3 .......................................................162 dbint.......................................................................45 dbpc .......................................................................61 dbpsw ....................................................................61 dbrdy.....................................................................45 dbresz...................................................................45 dchc0 to dchc3..................................................165 dck..........................................................................45 dcresz...................................................................45 dcu........................................................................239 dcu pin....................................................................45 dcwait ...................................................................45 dda0 to dda3 .......................................................160 ddi ...........................................................................45 ddis.......................................................................166 ddo .........................................................................45 ddoenb ..................................................................45 ddoout..................................................................45 debug functions .....................................................239 dma addressing control registers 0 to 3 ................163 dma bus state........................................................168 dma channel control registers 0 to 3 .....................165 dma channel priorities ...........................................157 dma destination address registers 0 to 3 ..............160 dma disable status register ...................................166 dma restart register ...............................................166 dma source address registers 0 to 3 .....................158 dma transfer count registers 0 to 3........................162 dma transfer start factors ......................................180 dma transfer timing examples ...............................185 dmac.....................................................................155 dmac bus cycle state transitions ..........................170 dmactv3 to dmactv0 ..........................................37 dmarq3 to dmarq0..............................................37 dms .........................................................................45 dmtco3 to dmtco0 ..............................................37
appendix b index preliminary user?s manual a15015ej3v0um 248 drst ..................................................................... 166 drstz ..................................................................... 45 ds1, ds0 ............................................................... 163 dsa0 to dsa3 ....................................................... 158 [e] eclrip .................................................................... 44 ecr ................................................................... 61, 62 eicc ........................................................................ 62 eintak .................................................................... 44 eintlv6 to eintlv0 ............................................... 42 eintrq.................................................................... 44 eipc......................................................................... 61 eipsw ..................................................................... 61 en3 to en0 ............................................................ 166 endian configuration register ................................... 93 endian setting function............................................. 93 enn ........................................................................ 165 ep ............................................................................ 63 evad15 to evad0................................................... 46 evastb ................................................................... 46 evclrip.................................................................. 46 evdstb................................................................... 46 event functions ...................................................... 241 evien ...................................................................... 46 evintak.................................................................. 46 evintlv6 to evintlv0 .......................................... 46 evintrq ................................................................. 46 evirel .................................................................... 46 evlkrt ................................................................... 46 evoen..................................................................... 46 evttrg................................................................... 45 example of connection of peripheral macro in test mode ...................................................................... 237 exception trap ........................................................ 232 exhlt ..................................................................... 45 external intc pins................................................... 42 external memory ...................................................... 18 external memory area.............................................. 73 [f] fcomb .................................................................... 49 fecc ....................................................................... 62 fepc ....................................................................... 61 fepsw .................................................................... 61 flyby transfer ......................................................... 179 forcible interruption ............................................... 182 forcible termination ............................................... 183 [g] general-purpose registers........................................59 [h] halt mode ............................................................146 handling of each pin in test mode ..........................238 hardware stop mode ...........................................149 hwstoprq ............................................................36 [i] ibaack ....................................................................39 ibbtft .....................................................................39 ibdle3 to ibdle0....................................................39 ibdrdy ....................................................................39 ibdrrq....................................................................39 ibea25 to ibea2 ......................................................39 ibedi31 to ibedi0....................................................39 id ......................................................................63, 229 idaack ....................................................................40 idbr2 to idbr0 .......................................................45 iddarq....................................................................40 iddrdy....................................................................41 iddrrq ...................................................................40 iddwrq...................................................................40 idea27 to idea0......................................................41 ided31 to ided0 .....................................................41 ides .........................................................................41 idhum......................................................................41 idmastp..................................................................37 idretr ....................................................................41 idrrdy....................................................................41 idseq2 ....................................................................40 idseq4 ....................................................................40 idunch....................................................................41 ifid256.....................................................................48 ifieva ......................................................................49 ifimaen ...................................................................48 ifimode3, ifimode2..............................................49 ifinsz1, ifinsz0.....................................................48 ifira64, ifira32, ifira16 ......................................47 ifirabe....................................................................49 ifirase....................................................................49 ifirob2....................................................................47 ifirobe ...................................................................49 ifirome...................................................................47 ifiropr ...................................................................49 ifiunch0 .................................................................49 ifiunch1 .................................................................48
appendix b index preliminary user?s manual a15015ej3v0um 249 ifiuswe.................................................................. 49 ifiwrth.................................................................. 48 iiaack ..................................................................... 39 iibtft...................................................................... 40 iidlef...................................................................... 39 iidrrq .................................................................... 39 iiea25 to iiea2 ........................................................ 39 iiedi31 to iiedi0...................................................... 40 iircan..................................................................... 40 illegal opcode......................................................... 232 imr0 to imr3......................................................... 227 initn ...................................................................... 165 in-service priority register ...................................... 228 instruction cache control registers ........................... 79 int63 to int0 .......................................................... 37 intc ...................................................................... 211 intc pins................................................................. 37 internal block diagram ............................................. 22 internal units ............................................................ 23 interrupt control registers 0 to 63........................... 226 interrupt mask registers 0 to 3 ............................... 227 interrupt response time.......................................... 234 interrupt/exception list............................................ 211 interrupt/exception table .......................................... 68 intm ...................................................................... 143 ir ................................................................... 158, 160 irama27 to irama2 ............................................... 38 iramen ................................................................... 38 iramrwb................................................................ 38 iramwr3 to iramwr0 .......................................... 38 iramwt .................................................................. 38 iramz31 to iramz0................................................ 38 iraoz31 to iraoz0 ................................................ 38 iroma19 to iroma2 .............................................. 37 iromae................................................................... 38 iromcs................................................................... 38 iromen................................................................... 38 iromia .................................................................... 38 iromwt .................................................................. 38 iromz31 to iromz0............................................... 37 irrsa...................................................................... 41 ispr ...................................................................... 228 ispr7 to ispr0 ..................................................... 228 [l] line transfer mode................................................. 174 list of pin functions .................................................. 25 [m] maskable interrupt priorities ...................................222 maskable interrupt status flag ................................229 maskable interrupts................................................219 memory banks..........................................................80 memory controller control registers ..........................78 mlen ......................................................................165 mskhrq..................................................................45 msknmi2 to msknmi0............................................45 mskstp...................................................................45 mwait .....................................................................45 n next address setting function.................................167 nmi.........................................................................214 nmi0m....................................................................143 nmi1m....................................................................143 nmi2 to nmi0 ...........................................................37 nmi2m....................................................................143 non-maskable interrupts ........................................214 normal mode..........................................................235 np ............................................................................63 npb ..........................................................................17 npb read/write timing.............................................132 npb strobe wait control register.............................129 NU85ET control registers .........................................75 [o] operation mode setting pins ....................................47 ov ............................................................................63 [p] pa13 to pa00...................................................91, 127 pa15 ................................................................91, 127 pc ......................................................................59, 60 periods when interrupts cannot be acknowledged ........................................................234 peripheral eva chip mode pins................................46 peripheral i/o area ...................................................72 peripheral i/o area select control register........91, 127 peripheral i/o registers ............................................74 pheva .....................................................................49 phtdin1, phtdin0.................................................50 phtdo1, phtdo0 ..................................................49 phtest ...................................................................50 pic0 to pic63 ........................................................226 pifn........................................................................226 pin functions.............................................................25
appendix b index preliminary user?s manual a15015ej3v0um 250 pin status ................................................................. 53 pmkn ............................................................. 226, 227 power save control register ................................... 143 power save function............................................... 142 pprn2 to pprn0 ................................................... 226 prcmd .................................................................. 145 program area ........................................................... 65 program counter ................................................ 59, 60 program registers .................................................... 59 programmable chip select function.......................... 83 programmable peripheral i/o area......................... 126 programmable peripheral i/o area selection function .................................................................... 89 psc........................................................................ 143 psw................................................................... 61, 63 [r] r0 to r31.................................................................... 59 ram ......................................................................... 18 ram area ................................................................. 71 recommended connection of unused pins.............. 51 reg7 to reg0....................................................... 145 registers.................................................................. 58 resetz ................................................................... 35 resmk .................................................................... 45 retry function......................................................... 131 rom......................................................................... 18 rom area................................................................. 68 rom relocation function .......................................... 68 rom/ram access timing ....................................... 245 romtype ............................................................... 45 [s] s............................................................................... 63 sa15 to sa0 .......................................................... 159 sa27 to sa16 ........................................................ 158 sad1, sad0 .......................................................... 164 sat .......................................................................... 63 single transfer mode.............................................. 171 single-step transfer mode...................................... 173 software exception ................................................ 230 software stop mode ............................................ 147 standby test mode ................................................. 236 stbc ..................................................................... 142 stgn...................................................................... 165 stopz ..................................................................... 36 stp ........................................................................ 143 stpak ..................................................................... 37 stprq .....................................................................37 suwl2 to suwl0..................................................129 swstoprq.............................................................36 symbol diagram........................................................21 system registers.......................................................61 [t] tapsm3 to tapsm0 ................................................45 tbi39 to tbi0 ...........................................................49 tbo34 to tbo0........................................................49 tbredz ...................................................................50 tcn.........................................................................165 tdir .......................................................................164 terminal count output when dma transfer is complete .................................................................181 tesen......................................................................49 test ........................................................................49 test function...........................................................235 test mode pins .........................................................49 test pins ................................................................235 tm1, tm0 ...............................................................164 tmode1, tmode0..................................................50 trace functions.......................................................240 transfer objects......................................................157 trcclk ...................................................................45 trcdata3 to trcdata0.......................................45 trcend...................................................................45 trg1, trg0 ............................................................45 ttyp ......................................................................164 two-cycle transfer ..................................................178 [u] unit test mode ........................................................236 [v] vaack .....................................................................31 vapreq...................................................................31 vareq .....................................................................31 vbclk......................................................................36 vbdc........................................................................35 vbdi31 to vbdi0......................................................31 vbdo31 to vbdo0 ..................................................31 vbdv........................................................................35 vdb ..........................................................................18 vdcsz7 to vdcsz0 ................................................35 vdselpz .................................................................34 vfb...........................................................................18 vma27 to vma0 .......................................................31
appendix b index preliminary user?s manual a15015ej3v0um 251 vmahld .................................................................. 34 vmbenz3 to vmbenz0 .......................................... 32 vmbstr .................................................................. 34 vmctyp2 to vmctyp0 .......................................... 33 vmlast .................................................................. 34 vmlock.................................................................. 32 vmseq2 to vmseq0 .............................................. 33 vmsize1, vmsize0 ................................................ 32 vmstz..................................................................... 31 vmttyp1, vmttyp0.............................................. 31 vmwait .................................................................. 34 vmwrite ................................................................ 32 vpa13 to vpa0 ....................................................... 30 vpdact .................................................................. 30 vpdi15 to vpdi0 ..................................................... 30 vpdo15 to vpdo0.................................................. 30 vpdv ....................................................................... 30 vplock .................................................................. 30 vpresz .................................................................. 50 vpretr .................................................................. 30 vpstb ..................................................................... 30 vptclk................................................................... 49 vpubenz ................................................................30 vpwrite .................................................................30 vsa13 to vsa0 ........................................................31 vsahld ...................................................................34 vsb ..........................................................................17 vsbenz1 .................................................................32 vslast....................................................................34 vslock...................................................................32 vsselpz .................................................................34 vsstz......................................................................31 vswait....................................................................34 vswc.....................................................................129 vswl2 to vswl0 ..................................................130 vswrite .................................................................32 [w] wait insertion function............................................129 [z] z ...............................................................................63
preliminary user?s manual a15015ej3v0um 252 appendix c revision history the following shows the major revisions in the previous edition (2nd edition). the numbers in the pages column indicate those in the previous edition. (1) from 1st to 2nd pages description throughout change of dcresz pin to nec reserved pin p.25 modification of 2.1 list of pin functions p.30 modification of 2.2.1 (4) vpwrite p.37 modification of 2.2.4 (1) idmastp p.50 modification of 2.2.14 (10) vpresz p.120 addition of bus priority in 4.9.6 bus master transition timing p.130 modification of table 5-1 setting of setup wait, vpstb wait lengths at each operation frequency p.140 modification of figure 5-15 npb write timing (example of timing of data write to csc0 and csc1 registers) p.143 addition of caution 2 in 6.2.1 power save control register (psc) p.147 modification of 6.4 (2) (a) cancellation by interrupt request p.149 modification of remark in 6.5 (1) setting and operation status p.154 modification of figure 6-6 hardware stop mode set/cancel timing example p.176 modification of 7.8.4 block transfer mode p.179 modification of 7.9.2 flyby transfer pp.181 to 184, 186, 188, 190, 192, 194, 196, 198, 200, 202 modification of vmseq2 to vmseq0, vmsize1, and vmsize0 timing in figures 7-27 to 7-38 p.238 modification of 9.4 (2) test mode pins
although nec has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that errors may occur. despite all the care and precautions we've taken, you may encounter problems in the documentation. please complete this form whenever you'd like to report errors or suggest improvements to us. hong kong, philippines, oceania nec electronics hong kong ltd. fax: +852-2886-9022/9044 korea nec electronics hong kong ltd. seoul branch fax: +82-2-528-4411 taiwan nec electronics taiwan ltd. fax: +886-2-2719-5951 address north america nec electronics inc. corporate communications dept. fax: +1-800-729-9288 +1-408-588-6130 europe nec electronics (europe) gmbh market communication dept. fax: +49-211-6503-274 south america nec do brasil s.a. fax: +55-11-6462-6829 asian nations except philippines nec electronics singapore pte. ltd. fax: +65-250-3583 japan nec semiconductor technical hotline fax: +81- 44-435-9608 i would like to report the following error/make the following suggestion: document title: document number: page number: thank you for your kind support. if possible, please fax the referenced page or drawing. excellent good acceptable poor document rating clarity technical accuracy organization cs 01.11 name company from: tel. fax facsimile message


▲Up To Search▲   

 
Price & Availability of NU85ET

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X